Skip to content

Commit

Permalink
Update regex for get_model_perf_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami6720 committed Feb 13, 2024
1 parent 62681a9 commit 7af0d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_lambdas/get_model_perf_metrics/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def lambda_handler(event, context):
"""

last_date = dict(collection.find_one(
{'timestamp': {"$regex": "*2024"}},
{'timestamp': {"$regex": ".*2024$"}},
sort=[('timestamp', DESCENDING)]
))['timestamp']

Expand Down

0 comments on commit 7af0d1b

Please sign in to comment.