Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed May 13, 2024
1 parent 64aecd8 commit 69cd12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/serializers/submission_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def to_representation(self, instance: Submission) -> dict | None:
request: HttpRequest | None = self.context.get('request')
if request is not None:
representation: dict = super().to_representation(instance)
representation['zip'] = request.build_absolute_uri(reverse("submission-detail", args=[str(instance.id)]) + "zip/")
representation['zip'] = request.build_absolute_uri(
reverse("submission-detail", args=[str(instance.id)]) + "zip/"
)
return representation

return None
Expand Down

0 comments on commit 69cd12b

Please sign in to comment.