From bbeb1ea377a23b43d010d8e9ec9b714d14cc800b Mon Sep 17 00:00:00 2001 From: Fruittips Date: Mon, 27 Nov 2023 14:36:59 +0800 Subject: [PATCH] update past record duration --- lambda/lambda_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambda/lambda_function.py b/lambda/lambda_function.py index 422034b..c8f5e95 100644 --- a/lambda/lambda_function.py +++ b/lambda/lambda_function.py @@ -8,7 +8,7 @@ SUPABASE_KEY = os.environ.get("SUPABASE_KEY") supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY) -PAST_RECORDS_DURATION = 13 # in minutes TODO: change such that we can sample >= 25 past records (e.g. sampling interval * 25) +PAST_RECORDS_DURATION = 3 # in minutes TODO: change such that we can sample >= 25 past records (e.g. sampling interval * 25) def lambda_handler(event, context): rowId = event.get('rowId')