Skip to content

Commit

Permalink
Use profile name to link R25 reservation to EMS booking
Browse files Browse the repository at this point in the history
  • Loading branch information
btb committed Apr 11, 2019
1 parent b656547 commit 30c6f8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ems_r25/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ def create_r25_reservation(event_data):
r25_event = events_from_xml(update_event(event_tree))[0]

for res in r25_event.reservations:
if (res.space_reservation.space_id == event_data['r25_space_id'] and
res.start_datetime == event_data['start_time'] and
res.end_datetime == event_data['end_time']):
if res.profile_name == event_data['r25_profile_name']:
event_data['r25_reservation_id'] = res.reservation_id

return event_data
Expand Down

0 comments on commit 30c6f8d

Please sign in to comment.