Skip to content

Commit

Permalink
fix: make backend tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed Apr 8, 2024
1 parent 3eb8851 commit c714852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/serializers/submission_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def create(self, validated_data):

# Get the maximum submission number for the group's project
max_submission_number = Submission.objects.filter(
group_project=project
group__project=project
).aggregate(Max('submission_number'))['submission_number__max'] or 0

# Set the new submission number to the maximum value plus 1
Expand Down

0 comments on commit c714852

Please sign in to comment.