Skip to content

Commit

Permalink
Fixing hotel request import
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Nov 11, 2024
1 parent 80c30b2 commit 3a821d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/tuber/api/uber.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ def export_requests(event, hotel_room_requests):
uber_room_nights = get_nights(event_obj.uber_url, headers)
room_nights_lookup = {}
for room_night in room_nights:
if room_night.date in uber_room_nights.keys():
if room_night.date.strftime("%Y-%m-%d") in uber_room_nights.keys():
room_nights_lookup[room_night.id
] = uber_room_nights[room_night.date]
] = uber_room_nights[room_night.date.strftime("%Y-%m-%d")]
else:
print(f"Could not find uber entry for {room_night.name}")

Expand Down

0 comments on commit 3a821d8

Please sign in to comment.