Skip to content

Commit

Permalink
fix: set results uploaded flag, even if no results urls
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Jan 26, 2024
1 parent 0acb240 commit 4595147
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/src/routes/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ async def process_upload_file(
results.append(result)

await Results.create_multiple(results)

if results_links:
await Events.update_results_links(event_id, results_links)
await Events.update_results_links(event_id, results_links or {})

return Message(detail=f"{len(results)} Results Imported")

Expand Down

0 comments on commit 4595147

Please sign in to comment.