Skip to content

Commit

Permalink
Merge pull request #21 from enzok/FIX-004
Browse files Browse the repository at this point in the history
fix - call method syntax error
  • Loading branch information
doomedraven authored Jan 17, 2020
2 parents 87b9a4e + 799ee49 commit 9ce2a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def delete_mongo_data(tid):
try:
results_db = connect_to_mongo()[mdb]
analyses = results_db.analysis.find({"info.id": int(tid)})
if analyses.count > 0:
if analyses.count() > 0:
for analysis in analyses:
log.info("deleting MongoDB data for Task #{0}".format(tid))
for process in analysis.get("behavior", {}).get("processes", []):
Expand Down

0 comments on commit 9ce2a36

Please sign in to comment.