add order by
This commit is contained in:
parent
9dd2d30dcf
commit
294b189a92
@ -10,7 +10,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
@shared_task
|
@shared_task
|
||||||
def process_location_data():
|
def process_location_data():
|
||||||
data = LocationData.objects.filter(processed=False)
|
data = LocationData.objects.filter(processed=False).order_by('tst')
|
||||||
for ld in data:
|
for ld in data:
|
||||||
cli = Client.objects.filter(uuid=ld.client_id, desks__desk_no=ld.desk_no)
|
cli = Client.objects.filter(uuid=ld.client_id, desks__desk_no=ld.desk_no)
|
||||||
if cli.count() < 1:
|
if cli.count() < 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user