From 69cd12ba989258586f5517a952e09222780e0736 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Mon, 13 May 2024 19:16:19 +0200 Subject: [PATCH] chore: linter --- backend/api/serializers/submission_serializer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/api/serializers/submission_serializer.py b/backend/api/serializers/submission_serializer.py index 769b77bf..db2d505c 100644 --- a/backend/api/serializers/submission_serializer.py +++ b/backend/api/serializers/submission_serializer.py @@ -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