Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent aae4e0a commit 725a84a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tin/apps/assignments/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class Meta:
}

def __str__(self) -> str:
return f"AssignmentForm(\"{self['name'].value()}\")"
return f'AssignmentForm("{self["name"].value()}")'


class GraderScriptUploadForm(forms.Form):
Expand Down
2 changes: 1 addition & 1 deletion tin/apps/assignments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def download_grader_view(request, assignment_id):

with grader_file.open() as f_obj:
response = http.HttpResponse(f_obj.read(), content_type="text/plain")
filename = f'{assignment.name.replace(" ", "_")}_{grader_file.name.split("/")[-1]}'
filename = f"{assignment.name.replace(' ', '_')}_{grader_file.name.split('/')[-1]}"
response["Content-Disposition"] = f'attachment; filename="{filename}"'

return response
Expand Down

0 comments on commit 725a84a

Please sign in to comment.