Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Curiouspaul1 committed Dec 7, 2023
1 parent 2497060 commit dca9e2e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/venue.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ def verify():
}

events = venue.events
if not events:
return {
'status': 'error',
'code': 12,
'msg': f"Unverifiable ticket {data['ticket_id']}- please rsvp for sessions before hand"
}

curr = None
for evnt in events:
if time_code[data['time_code']] == evnt.session_id:
Expand All @@ -75,7 +70,7 @@ def verify():
if curr not in attendee_profile.events:
return {
'status': 'error',
'code': 13,
'code': 12,
'msg': 'Attendee did not RSVP for this session'
}, 400
else:
Expand Down

0 comments on commit dca9e2e

Please sign in to comment.