Skip to content

Commit

Permalink
allow for simname to be optional
Browse files Browse the repository at this point in the history
Signed-off-by: Lance-Drane <ldraneutk@gmail.com>
  • Loading branch information
Lance-Drane committed Aug 28, 2024
1 parent 8e366f4 commit ea63fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipsportal/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def event() -> Tuple[Response, int]:
successes += 1
output['message'] = "New run created and " + output['message']
output['runid'] = runid
output['simname'] = e['simname']
if 'simname' in e:
output['simname'] = e['simname']
continue

update: Dict[str, Any] = {"$push": {"events": e}}
Expand Down

0 comments on commit ea63fa1

Please sign in to comment.