From dc648d6770e651eb3c040d2ea9f31801494c1524 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 19 Dec 2023 13:25:02 -0500 Subject: [PATCH] membershipworks: Move scrape task to 'tasks' submodule --- membershipworks/management/commands/scrape_membershipworks.py | 4 ++-- membershipworks/{tasks.py => tasks/scrape.py} | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) rename membershipworks/{tasks.py => tasks/scrape.py} (98%) diff --git a/membershipworks/management/commands/scrape_membershipworks.py b/membershipworks/management/commands/scrape_membershipworks.py index 4a254e2..91340a8 100644 --- a/membershipworks/management/commands/scrape_membershipworks.py +++ b/membershipworks/management/commands/scrape_membershipworks.py @@ -1,8 +1,8 @@ from django.core.management.base import BaseCommand -from membershipworks import tasks +from membershipworks.tasks.scrape import scrape_membershipworks class Command(BaseCommand): def handle(self, *args, **options): - tasks.scrape_membershipworks() + scrape_membershipworks() diff --git a/membershipworks/tasks.py b/membershipworks/tasks/scrape.py similarity index 98% rename from membershipworks/tasks.py rename to membershipworks/tasks/scrape.py index 14e5174..ce5f0f8 100644 --- a/membershipworks/tasks.py +++ b/membershipworks/tasks/scrape.py @@ -4,8 +4,6 @@ import logging from django.conf import settings from django.db import transaction -from django_q.models import Schedule - from membershipworks.models import Member, Flag, Transaction from membershipworks import MembershipWorks