From 4276ee76be19db44b4735a3fa23474ada242dc19 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Sat, 11 Feb 2017 11:00:14 +0100 Subject: [PATCH] fix select --- billard/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billard/models.py b/billard/models.py index 1996249..6a053c5 100644 --- a/billard/models.py +++ b/billard/models.py @@ -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!'