Skip to content

Commit

Permalink
fix: bug in get_team_ids_by_team_submission_uuid (#157)
Browse files Browse the repository at this point in the history
* fix: bug in get_team_ids_by_team_submission_uuid

* refactor: return UUIDs as strings

* chore: bump version
  • Loading branch information
nsprenkle authored Feb 22, 2022
1 parent 74a9bb1 commit 34f01f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion submissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" API for creating submissions and scores. """
__version__ = '3.5.0'
__version__ = '3.5.1'
4 changes: 2 additions & 2 deletions submissions/team_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ def get_team_ids_by_team_submission_uuid(team_submission_uuids):
team submission uuids to team id
"""
values = TeamSubmission.objects.filter(
team_submission_uuid__in=team_submission_uuids
uuid__in=team_submission_uuids
).values(
"uuid", "team_id"
)
return {
item['uuid']: item['team_id']
str(item['uuid']): item['team_id']
for item in values
}

Expand Down

0 comments on commit 34f01f7

Please sign in to comment.