From 2b723cc21ab319db27684847a4d408f239363b86 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Thu, 10 Jul 2025 14:24:15 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=80=D0=B5=D0=BC=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- positioning/apps/eps/services/statistic/repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(