@@ -82,7 +82,7 @@ def process_https(results, domain_key, uuid, db):
8282 if isinstance (hsts , str ):
8383 hsts = hsts .lower ()
8484
85- if hsts == "hsts max age too short" :
85+ if hsts == "hsts max age too short" :
8686 negative_tags .append ("https10" )
8787
8888 elif hsts == "no hsts" :
@@ -182,7 +182,7 @@ def process_https(results, domain_key, uuid, db):
182182 logging .info ("HTTPS Scan inserted into database" )
183183
184184 else :
185- publish_results (httpsResults , "https" , uuid )
185+ publish_results ({ "domainKey" : domain_key , "results" : httpsResults } , "https" , uuid )
186186 logging .info ("HTTPS Scan published to redis" )
187187
188188
@@ -304,7 +304,7 @@ def process_ssl(results, guidance, domain_key, uuid, db):
304304 logging .info ("SSL Scan inserted into database" )
305305
306306 else :
307- publish_results (sslResults , "ssl" , uuid )
307+ publish_results ({ "domainKey" : domain_key , "results" : sslResults } , "ssl" , uuid )
308308 logging .info ("SSL Scan published to redis" )
309309
310310
@@ -890,9 +890,9 @@ def process_dns(results, domain_key, uuid, db):
890890 logging .info ("DNS Scans inserted into database" )
891891
892892 else :
893- publish_results (dmarcResults , "dmarc" , uuid )
894- publish_results (spfResults , "spf" , uuid )
895- publish_results (dkimResults , "dkim" , uuid )
893+ publish_results ({ "domainKey" : domain_key , "results" : dmarcResults } , "dmarc" , uuid )
894+ publish_results ({ "domainKey" : domain_key , "results" : spfResults } , "spf" , uuid )
895+ publish_results ({ "domainKey" : domain_key , "results" : dkimResults } , "dkim" , uuid )
896896 logging .info ("DNS Scans published to redis" )
897897
898898
0 commit comments