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

@ -28,6 +28,7 @@ class Federation(View):
sort = request.GET.get("sort")
sort_fields = ["created_date", "application_type", "server_name"]
# pylint: disable=consider-using-f-string
if not sort in sort_fields + ["-{:s}".format(f) for f in sort_fields]:
sort = "-created_date"
servers = servers.order_by(sort)