1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00

Fix Python Syntax Error

Commit 937c3c6a68 introduced a Python
syntax error, breaking the server. This fixes the issue by restoring the
probably accidental removal of one line of code.
This commit is contained in:
Lars Kiesow 2025-04-11 20:18:14 +02:00
parent d7496df100
commit 23426012af

View file

@ -23,6 +23,7 @@ class CollectionViewSet(viewsets.ModelViewSet):
order_direction = self.request.query_params.get('order_direction', 'asc')
valid_order_by = ['name', 'updated_at', 'start_date']
if order_by not in valid_order_by:
order_by = 'updated_at'
if order_direction not in ['asc', 'desc']: