Skip to content

Commit 94c306c

Browse files
committed
Fix registry check queryset type hint
1 parent 24fe906 commit 94c306c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/donations/management/commands/check_ngos.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from django.conf import settings
77
from django.core.management import BaseCommand
88
from django.db.models import Q
9+
from django.db.models.query import ValuesQuerySet
910
from django.utils import timezone
1011
from requests.exceptions import ConnectionError, Timeout
1112

@@ -44,7 +45,7 @@ def handle(self, *args, **options):
4445
recent_deadline = ts - timedelta(hours=2)
4546
short_deadline = ts - timedelta(days=30)
4647

47-
qs: list[str] = (
48+
qs: ValuesQuerySet = (
4849
Ngo.objects.exclude(pause_cult_registry_check=True)
4950
# check only NGOs whose registration number is valid:
5051
.filter(registration_number_valid=True)

0 commit comments

Comments
 (0)