f string updates

This commit is contained in:
Mouse Reeve
2021-09-27 10:21:46 -07:00
parent 28d40e9914
commit 69b010a8d3
4 changed files with 6 additions and 3 deletions

View File

@ -31,6 +31,7 @@ class Announcements(View):
"end_date",
"active",
]
# pylint: disable=consider-using-f-string
if sort in sort_fields + ["-{:s}".format(f) for f in sort_fields]:
announcements = announcements.order_by(sort)
data = {