0.12.10 routes order

This commit is contained in:
SDE
2024-02-02 15:51:37 +03:00
parent 5815a08b55
commit 3725ce1882

View File

@@ -223,7 +223,7 @@ def get_routes_Dict(user=None, data=None):
if key == 'to_el':
to_el = int(val)
routes = Route.objects.filter(**kwargs).order_by('departure_DT', 'arrival_DT', '-modifiedDT')
routes = Route.objects.filter(**kwargs).order_by('-departure_DT', '-arrival_DT', '-modifiedDT')
routes_count = routes.count()
if from_el and to_el: