chg: Fix typing

pull/79/head
Raphaël Vinot 2020-05-25 15:39:12 +02:00
parent 806c738fcd
commit e29f2d93af
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ from lookyloo.lookyloo import Lookyloo
from lookyloo.exceptions import NoValidHarFile from lookyloo.exceptions import NoValidHarFile
from .proxied import ReverseProxied from .proxied import ReverseProxied
from typing import Optional, Dict, Any from typing import Optional, Dict, Any, List
import logging import logging
@ -165,7 +165,7 @@ def hostnode_popup(tree_uuid: str, node_uuid: str):
} }
urls = [] urls = []
sanejs_lookups = [] sanejs_lookups: Dict[str, List[str]] = {}
if hasattr(lookyloo, 'sanejs') and lookyloo.sanejs.available: if hasattr(lookyloo, 'sanejs') and lookyloo.sanejs.available:
to_lookup = [url.body_hash for url in hostnode.urls if hasattr(url, 'body_hash')] to_lookup = [url.body_hash for url in hostnode.urls if hasattr(url, 'body_hash')]
sanejs_lookups = lookyloo.sanejs.hashes_lookup(to_lookup) sanejs_lookups = lookyloo.sanejs.hashes_lookup(to_lookup)