lint

parent 8555a2e2
......@@ -7,6 +7,7 @@ from jet.admin import CompactInline
from failmap_admin.map.determineratings import (OrganizationRating, UrlRating, rate_organization,
rate_selected_organizations, rate_urls)
from failmap_admin.scanners.admin import UrlIpInline
from failmap_admin.scanners.models import Endpoint
from failmap_admin.scanners.scanner_dns import brute_known_subdomains, certificate_transparency
from failmap_admin.scanners.scanner_http import scan_urls_on_standard_ports
......@@ -14,7 +15,6 @@ from failmap_admin.scanners.scanner_plain_http import scan_urls as plain_http_sc
from failmap_admin.scanners.scanner_screenshot import screenshot_urls
from failmap_admin.scanners.scanner_security_headers import scan_urls as security_headers_scan_urls
from failmap_admin.scanners.scanner_tls_qualys import scan_url_list
from failmap_admin.scanners.admin import UrlIpInline
from ..app.models import Job
from .models import Coordinate, Organization, OrganizationType, Url
......
......@@ -3,7 +3,7 @@ import logging
from django.core.management.base import BaseCommand
from failmap_admin.scanners.models import (Endpoint, EndpointGenericScan, Screenshot, TlsQualysScan,
UrlIp, Url)
UrlIp)
logger = logging.getLogger(__package__)
......@@ -69,6 +69,9 @@ failmap-admin rebuild-ratings
failmap-admin migrate-61-endpoint-ip-separation
failmap-admin rebuild-ratings
failmap-admin clear-database && failmap-admin load-dataset productiondata &&
failmap-admin migrate-61-endpoint-ip-separation && failmap-admin rebuild-ratings
# The ratings should be the same
"""
......@@ -109,12 +112,12 @@ def merge_duplicate_endpoints():
"""
URL DOMAIN DISCOVERED ON ipv PORT PROTOCOL IS DEAD SINCE TLS SCAN COUNT
... and 200 more...
opendata.arnhem.nl opendata.arnhem.nl 27 april 2016 14:59 4 443 https 3 mei 2016 03:18 1
opendata.arnhem.nl opendata.arnhem.nl 27 april 2016 14:59 4 443 https 3 mei 2016 03:18 1
opendata.arnhem.nl opendata.arnhem.nl 27 april 2016 14:59 4 443 https 3 mei 2016 03:18 1
opendata.arnhem.nl opendata.arnhem.nl 8 april 2016 19:52 4 443 https 27 april 2016 14:59 1
opendata.arnhem.nl opendata.arnhem.nl 8 april 2016 19:52 4 443 https 27 april 2016 14:59 1
opendata.arnhem.nl opendata.arnhem.nl 8 april 2016 19:52 4 443 https 27 april 2016 14:59 1
"""
if similar_endpoints:
first_similar = similar_endpoints[-1]
......
......@@ -9,12 +9,11 @@ https://stackoverflow.com/questions/20475552/python-requests-library-redirect-ne
"""
import logging
from celery import group
from failmap_admin.scanners.scanner_http import scan_urls as scanner_http_scan_urls
from failmap_admin.organizations.models import Url
from failmap_admin.scanners.endpoint_scan_manager import EndpointScanManager
from failmap_admin.scanners.scanner_http import scan_urls as scanner_http_scan_urls
from ..celery import app
from .models import Endpoint
......
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