Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dispatch(hits, events=None, verbosity=0):
global DBS
for key in DBS:
db = DBS[key]
if "hits_db" in db:
try:
djdb = db["hits_db"]
except:
print("Database ", db, "not found")
orm.write(djdb, hits, verbosity)
print_summary(num_hits=len(hits))
def dispatch(hits, events=None, verbosity=0):
global DBS
for key in DBS:
db = DBS[key]
if "hits_db" in db:
try:
djdb = db["hits_db"]
except:
print("Database ", db, "not found")
orm.write(djdb, hits, verbosity)
print_summary(num_hits=len(hits))