Skip to content

Commit 9a7eea5

Browse files
committed
Dropping unnecessary imports
1 parent eab27f1 commit 9a7eea5

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

api/management/commands/user_registration_reminder.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
from datetime import datetime, timezone, timedelta
2-
from django.db.models import Q, F, ExpressionWrapper, DurationField, Sum
3-
from django.db.models.query import QuerySet
42
from django.core.management.base import BaseCommand
5-
from django.contrib.auth.models import User
6-
from django.conf import settings
73
from django.template.loader import render_to_string
8-
from elasticsearch.helpers import bulk
9-
from utils.elasticsearch import construct_es_data
10-
from api.esconnection import ES_CLIENT
11-
from api.models import UserRegion, Region, Event, ActionsTaken, CronJob, CronJobStatus, Profile
12-
from api.logger import logger
13-
from notifications.models import RecordType, SubscriptionType, Subscription, SurgeAlert
14-
from notifications.hello import get_hello
15-
from notifications.notification import send_notification
16-
from deployments.models import PersonnelDeployment, ERU, Personnel
17-
from main.frontend import frontend_url
4+
from api.models import UserRegion, Region
185
from registrations.models import Pending
196
from notifications.notification import send_notification
20-
import html
21-
22-
23-
time_3_day = timedelta(days=3)
24-
257

268

279
class Command(BaseCommand):
2810
help = 'Send reminder about the pending registrations'
2911

3012
def diff_3_day(self):
31-
return datetime.utcnow().replace(tzinfo=timezone.utc) - time_3_day
13+
return datetime.utcnow().replace(tzinfo=timezone.utc) - timedelta(days=3)
3214

3315
def handle(self, *args, **options):
3416
region_ids = Region.objects.all().values_list('id', flat=True)

0 commit comments

Comments
 (0)