-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintBookingAPI.py
More file actions
31 lines (25 loc) · 847 Bytes
/
Copy pathintBookingAPI.py
File metadata and controls
31 lines (25 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import lambda_function as lmbFunction
import reqBookingAPI as reqBookingAPI
from collections import OrderedDict
from multiprocessing.pool import ThreadPool
import threading
from time import sleep
import random
import logging
def processList(parsedFile,executionMethod):
if str(executionMethod) == 'cancelBooking':
argumentList = []
argumentList.extend(parsedFile)
reqBookingAPI.cancelBookingReq(*argumentList)
if str(executionMethod) == 'cancelPersonParticipation':
argumentList = []
argumentList.extend(parsedFile)
reqBookingAPI.cancelPersonParticipation(*argumentList)
# Decode of ID to determine method
def transFormMethod(methValue):
if methValue == 1:
methodString = 'cancelBooking'
return methodString
if methValue == 2:
methodString = 'cancelPersonParticipation'
return methodString