diff --git a/db/MongoHelper.py b/db/MongoHelper.py index 3ae5c80..f732c3a 100644 --- a/db/MongoHelper.py +++ b/db/MongoHelper.py @@ -44,6 +44,8 @@ def select(self, count=None, conditions=None): count = 0 if conditions: conditions = dict(conditions) + if 'count' in conditions: + del conditions['count'] conditions_name = ['types', 'protocol'] for condition_name in conditions_name: value = conditions.get(condition_name, None)