Skip to content

Commit

Permalink
Checkin kisok now checks hackucf id
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyms committed Sep 4, 2024
1 parent e81499a commit 8c09cd8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/routes/plinko.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,15 @@ async def checkin(
user_data = get_user(session, uuid.UUID(member_id))

if not user_data:
return {
"success": False,
"msg": "Invalid membership ID. Did you show the right QR code?",
"user": {},
}
session.query(UserModel).filter(
UserModel.hackucf_id == uuid.UUID(member_id)
).one_or_none()
if not user_data:
return {
"success": False,
"msg": "Invalid membership ID. Did you show the right QR code?",
"user": {},
}

if user_data.get("assigned_run").lower() != run.lower():
return {
Expand Down

0 comments on commit 8c09cd8

Please sign in to comment.