fix select

This commit is contained in:
Robert Einsle 2017-02-11 11:00:14 +01:00
parent 2f14ecce7e
commit 4276ee76be

View File

@ -108,7 +108,7 @@ def test(sender, **kwargs):
def process_location_data():
data = LocationData.objects.filter(processed=False)
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:
ld.processed = True
ld.error_msg = 'No location object found. Stopp processing!'