Skip to content

Commit

Permalink
Fixing formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihalik committed Nov 23, 2024
1 parent 8503f9c commit c7c35e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ class Meta:

def __str__(self):
return f'{self.series.semester.competition.name}-{self.series.semester.year}' \
f'-{self.series.semester.season[0]
}S-S{self.series.order} - {self.order}. úloha'
f'-{self.series.semester.season[0]}S-S{self.series.order}'\
f' - {self.order}. úloha'

def get_stats(self):
stats = {}
Expand Down
4 changes: 2 additions & 2 deletions competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,8 @@ def download_publication(self, request, pk=None):
publication = self.get_object()
response = HttpResponse(
publication.file, content_type=mime_type(publication.file))
response['Content-Disposition'] = f'attachment; filename="{
publication.name}"'
response['Content-Disposition'] = f'attachment; '\
f'filename="{publication.name}"'
return response

@action(methods=['post'], detail=False, url_path='upload', permission_classes=[IsAdminUser])
Expand Down

0 comments on commit c7c35e7

Please sign in to comment.