Skip to content

Commit

Permalink
Return an object
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Oct 18, 2024
1 parent 2367152 commit e43faf8
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 @@ -268,7 +268,7 @@ def sync_attendees(event):
badge.last_name = uber_model['last_name']
badge.public_name = uber_model['full_name']
badge.legal_name = uber_model['legal_name']
badge.search_name = f"{uber_model['first_name']} {uber_model['last_name']}".lower(),
badge.search_name = f"{uber_model['first_name']} {uber_model['last_name']}".lower()
db.add(badge)
if uber_model['badge_status_label'] == "Deferred":
if attendee in badgelookup:
Expand Down Expand Up @@ -307,7 +307,7 @@ def sync_attendees(event):
db.add(badge)
db.commit()
print("done")
return "", 200
return "{}", 200

@app.route("/api/uber/<string:slug>/login", methods=["POST"])
def staffer_auth(slug):
Expand Down

0 comments on commit e43faf8

Please sign in to comment.