From a7fcd72d2b7688256dadff55056eea19f1967645 Mon Sep 17 00:00:00 2001 From: Kristoffer Rath Hansen Date: Sun, 29 Dec 2024 22:11:24 +0100 Subject: [PATCH] Temporarily disable --- members/jobs.py | 5 +++-- members/management/commands/update_dawa.py | 11 ----------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 members/management/commands/update_dawa.py diff --git a/members/jobs.py b/members/jobs.py index b8ba2fb7..809f648f 100644 --- a/members/jobs.py +++ b/members/jobs.py @@ -72,8 +72,9 @@ def do(self): .exclude(address_invalid__exact=True)[:50] ) - for person in persons: - person.update_dawa_data() + # Temporarily disable while fixing script + #for person in persons: + # person.update_dawa_data() # If it's the first day of the year, make sure to capture all payments that year diff --git a/members/management/commands/update_dawa.py b/members/management/commands/update_dawa.py deleted file mode 100644 index 101fbb24..00000000 --- a/members/management/commands/update_dawa.py +++ /dev/null @@ -1,11 +0,0 @@ -from django.core.management.base import BaseCommand -from members.models import Address -from tqdm import tqdm - - -class Command(BaseCommand): - help = "Updates dawa data" - - def handle(self, *args, **options): - for addres in tqdm(Address.objects.all(), desc="Updating address"): - addres.save()