forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
7373a7e8c4
commit
5416bb10fd
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ class Federation(View):
|
|||
|
||||
servers = models.FederatedServer.objects.all()
|
||||
|
||||
sort = request.GET.get('sort')
|
||||
sort_fields = ['created_date', 'application_type', 'server_name']
|
||||
sort = request.GET.get("sort")
|
||||
sort_fields = ["created_date", "application_type", "server_name"]
|
||||
if sort in sort_fields + ["-{:s}".format(f) for f in sort_fields]:
|
||||
servers = servers.order_by(sort)
|
||||
|
||||
|
|
Loading…
Reference in a new issue