Commit ba2727a8 authored by Barkin Simsek's avatar Barkin Simsek 🐢
Browse files

Handle None conditions in data analyzer

parent 66f1f5e9
Pipeline #7428 passed with stages
in 2 minutes and 38 seconds
...@@ -51,13 +51,15 @@ class Analyzer: ...@@ -51,13 +51,15 @@ class Analyzer:
tor = query_by_domain.filter(Fetcher.uses_tor == True).first() tor = query_by_domain.filter(Fetcher.uses_tor == True).first()
non_tor = query_by_domain.filter(Fetcher.uses_tor == False).first() non_tor = query_by_domain.filter(Fetcher.uses_tor == False).first()
exit_relay = tor.ref_relay
# Use the data for analysis if tor is not None and non_tor is not None:
tor.html_data exit_relay = tor.ref_relay
tor.http_requests
non_tor.html_data # Use the data for analysis
non_tor.http_requests tor.html_data
tor.http_requests
exit_relay.fingerprint non_tor.html_data
non_tor.http_requests
exit_relay.fingerprint
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