aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orm/management/commands/lsupdates.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/orm/management/commands/lsupdates.py')
-rw-r--r--lib/orm/management/commands/lsupdates.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/orm/management/commands/lsupdates.py b/lib/orm/management/commands/lsupdates.py
index 28ee1e5f..365c8ab4 100644
--- a/lib/orm/management/commands/lsupdates.py
+++ b/lib/orm/management/commands/lsupdates.py
@@ -21,15 +21,10 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from django.core.management.base import BaseCommand
-from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import Group
from orm.models import SrtSetting, DataSource
-from orm.models import Cve, CveToVulnerablility, CveReference
-from orm.models import Vulnerability
-from orm.models import CweTable, CveToCwe
-from orm.models import CpeToCve, CpeTable, CpeFilter
-from orm.models import Product, Defect
+from orm.models import CweTable, CpeFilter
from users.models import SrtUser
@@ -38,14 +33,13 @@ import sys
import re
import time
import pytz
-from datetime import datetime, date
+from datetime import datetime
import json
import xml.etree.ElementTree as ET
import csv
import logging
import threading
-import urllib
logger = logging.getLogger("srt")
@@ -327,9 +321,6 @@ class Command(BaseCommand):
logger.info("***LS UPDATES***")
- from urllib.request import urlopen, URLError
- from urllib.parse import urlparse
-
# Process the data sources in strict pk order to insure dependencies
data_sources=DataSource.objects.all().order_by('key')
for source in data_sources:
@@ -408,7 +399,7 @@ class Command(BaseCommand):
os.system('setterm -cursor on')
- def handle(self, **options):
+ def handle(self, *args, **options):
# testing shortcuts
if 'yes' == SrtSetting.objects.get(name='SRTDBG_MINIMAL_DB').value: