fix select
This commit is contained in:
parent
2f14ecce7e
commit
4276ee76be
@ -108,7 +108,7 @@ def test(sender, **kwargs):
|
|||||||
def process_location_data():
|
def process_location_data():
|
||||||
data = LocationData.objects.filter(processed=False)
|
data = LocationData.objects.filter(processed=False)
|
||||||
for ld in data:
|
for ld in data:
|
||||||
cli = Client.objects.filter(uuid=ld.client_id)
|
cli = Client.objects.filter(uuid=ld.client_id, desks__desk_no=ld.desk_no)
|
||||||
if cli.count() < 1:
|
if cli.count() < 1:
|
||||||
ld.processed = True
|
ld.processed = True
|
||||||
ld.error_msg = 'No location object found. Stopp processing!'
|
ld.error_msg = 'No location object found. Stopp processing!'
|
||||||
|
Loading…
Reference in New Issue
Block a user