[server]: Bug fixes
This commit is contained in:
@ -177,7 +177,6 @@ def lambda_handler(event, context):
|
|||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = [
|
futures = [
|
||||||
executor.submit(fetch_trains),
|
executor.submit(fetch_trains),
|
||||||
executor.submit(fetch_luas),
|
|
||||||
executor.submit(fetch_buses)
|
executor.submit(fetch_buses)
|
||||||
]
|
]
|
||||||
data = []
|
data = []
|
||||||
|
@ -97,7 +97,7 @@ def lambda_handler(event, context):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'statusCode': 200,
|
'statusCode': 200,
|
||||||
'body': json.dumps(items_with_latest_timestamp)
|
'body': json.dumps(items_with_latest_timestamp, default=str)
|
||||||
}
|
}
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Reference in New Issue
Block a user