Skip to content

Commit

Permalink
Merge branch 'main' into prod-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
brycegoh committed Nov 25, 2023
2 parents 00f0d0f + 949879a commit b676af4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def lambda_handler(event, context):
except Exception as e:
print(f"Error getting past records supabase: {e}")

if (temp_hum_aq_res == None or not temp_hum_aq_res.data):
if (temp_hum_aq_res == None or temp_hum_aq_res.data == None):
return {
'statusCode': 500,
'body': json.dumps({
Expand Down Expand Up @@ -105,8 +105,9 @@ def get_r_value(temp_arr, humidity_arr):

# # #TODO: DONT PUSH THIS REMOVE IT BEFORE PUSHING
# if __name__ == "__main__":
# lambda_handler({
# x = lambda_handler({
# "rowId":810,
# "temp":30.9,
# "flame": 0,
# }, None)
# }, None)
# print(x)

0 comments on commit b676af4

Please sign in to comment.