mirror of https://github.com/CIRCL/lookyloo
fix: Typing
parent
6866b49c87
commit
99550f439e
|
@ -506,11 +506,11 @@ def mark_as_legitimate(tree_uuid: str):
|
||||||
@auth.login_required
|
@auth.login_required
|
||||||
def add_context(tree_uuid: str, urlnode_uuid: str):
|
def add_context(tree_uuid: str, urlnode_uuid: str):
|
||||||
context_data = request.form
|
context_data = request.form
|
||||||
ressource_hash = context_data.get('hash_to_contextualize')
|
ressource_hash: str = context_data.get('hash_to_contextualize') # type: ignore
|
||||||
hostnode_uuid = context_data.get('hostnode_uuid')
|
hostnode_uuid: str = context_data.get('hostnode_uuid') # type: ignore
|
||||||
legitimate: bool = True if context_data.get('legitimate') else False
|
legitimate: bool = True if context_data.get('legitimate') else False
|
||||||
malicious: bool = True if context_data.get('malicious') else False
|
malicious: bool = True if context_data.get('malicious') else False
|
||||||
details = {'malicious': {}, 'legitimate': {}}
|
details: Dict[str, Dict] = {'malicious': {}, 'legitimate': {}}
|
||||||
if malicious:
|
if malicious:
|
||||||
malicious_details = {}
|
malicious_details = {}
|
||||||
if context_data.get('malicious_type'):
|
if context_data.get('malicious_type'):
|
||||||
|
|
Loading…
Reference in New Issue