Skip to content

Commit

Permalink
Merge pull request #7 from neuromatch/fix-submission-api
Browse files Browse the repository at this point in the history
Fix submission API
  • Loading branch information
titipata authored Oct 4, 2021
2 parents 382e43d + f143888 commit 73991d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,13 +641,13 @@ async def create_abstract(
"""
Submit an abstract to Airtable
"""
submission = submission.dict()
user_info = get_user_info(authorization)
user_id = get_user_info(authorization).get("user_id")
if user_id is not None:
user = get_data(user_id, user_collection)
submission["firstname"] = submission.get("firstname", "")
submission["lastname"] = submission.get("lastname", "")
submission = submission.dict()
submission["firstname"] = user.get("firstname", "")
submission["lastname"] = user.get("lastname", "")

# look for base_id for a given "edition"
base_id = es_config["editions"][edition].get("airtable_id")
Expand Down

0 comments on commit 73991d5

Please sign in to comment.