Skip to content

Commit

Permalink
fix: retrieve passenger_id and target_week from event in lambda_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
LokoMoloko98 committed Jan 25, 2025
1 parent 66eb5da commit 9cf820a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions swift-lift-fare-calculation/swift-lift-fare-calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ def lambda_handler(event, context):
print(event)

# Extract passenger_id and total trips from the event
# passenger_id = event.get('passenger_id')
# target_week = event.get('target_week')
passenger_id = "psg-001"
target_week = "2025-01-13"
passenger_id = event.get('passenger_id')
target_week = event.get('target_week')
if not passenger_id or not target_week:
raise ValueError("passenger_id and target_week must be provided")

Expand Down

0 comments on commit 9cf820a

Please sign in to comment.