fix select
This commit is contained in:
		@@ -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!'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user