1.1.11 funcs for raise and highlight routes

This commit is contained in:
SDE
2024-06-04 00:19:10 +03:00
parent bb1e3e9691
commit ffabffb2ef
3 changed files with 16 additions and 2 deletions

View File

@@ -228,7 +228,11 @@ 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(
'-rising_DT', '-departure_DT', '-arrival_DT', '-modifiedDT'
)
routes_count = routes.count()
if from_el and to_el: