lint

parent e2f736f6
......@@ -6,10 +6,11 @@
import os
import celery.exceptions
import celery_statsd
from celery import Celery, Task
from django.conf import settings
import celery_statsd
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "failmap_admin.settings")
app = Celery(__name__)
......
......@@ -5,10 +5,11 @@ import tldextract
from django.core.exceptions import ObjectDoesNotExist
from django.core.management.base import BaseCommand
from failmap_admin.organizations.models import Coordinate, Organization, OrganizationType, Url
from failmap_admin.scanners.models import Endpoint, EndpointGenericScan, TlsQualysScan, Screenshot, \
EndpointGenericScanScratchpad, TlsQualysScratchpad, State
from failmap_admin.map.models import OrganizationRating, UrlRating
from failmap_admin.organizations.models import Coordinate, Organization, OrganizationType, Url
from failmap_admin.scanners.models import (Endpoint, EndpointGenericScan,
EndpointGenericScanScratchpad, Screenshot, State,
TlsQualysScan, TlsQualysScratchpad)
logger = logging.getLogger(__package__)
......@@ -19,6 +20,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
askreset()
def askreset():
try:
print("Do you __REALLY__ want to delete all map, organization and scanner data?")
......@@ -32,6 +34,7 @@ def askreset():
except KeyboardInterrupt:
nothing_happened()
def nothing_happened():
print("Nothing was deleted.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment