diff --git a/positioning/apps/eps/services/statistic/repository.py b/positioning/apps/eps/services/statistic/repository.py index 80bc1b3..dd65b1c 100644 --- a/positioning/apps/eps/services/statistic/repository.py +++ b/positioning/apps/eps/services/statistic/repository.py @@ -10,8 +10,8 @@ class WorkerStatisticRepository(WorkerRepository): def get_workers_with_threshold( self, internal_threshold: datetime.datetime, street_threshold: datetime.datetime ) -> QuerySet[Worker]: - condition = Q(is_street=False, date_time__gte=internal_threshold) | Q( - is_street=True, date_time_street__gte=street_threshold + condition = Q(date_time__gte=internal_threshold) | Q( + date_time_street__gte=street_threshold ) active_tags = Tag.objects.filter(condition) workers_with_active_tags = Worker.objects.filter(