diff --git a/updater.py b/updater.py index cbcf540..84a0656 100644 --- a/updater.py +++ b/updater.py @@ -10,7 +10,7 @@ def update(): while True: if client.get_config('updater')['enabled']: fltr = {"last_time_updated": {"$lte": datetime.datetime.now() - datetime.timedelta(seconds=client.get_config('updater')['seconds_delay'])}} - if client.get_config('updater')['send_to_single']: + if not client.get_config('updater')['send_to_single']: fltr["chat_id"] = {"$lt": 0} for chat in mongo.chats_collection.find(fltr): users = list(mongo.counter_collection.find({"chat_id": chat['chat_id'], 'username': {"$ne": None}}))