alice bugfix

This commit is contained in:
Administrator 2023-04-08 14:28:16 +03:00
parent 9820cc5b91
commit 98470e2b45

View File

@ -19,8 +19,8 @@ class Processor:
def process(self) -> dict:
user = None
if self.data['session']['new']:
if self.user_id is not None:
return {}
if self.user_id is None:
return {"text": "Пингуй дальше"}
else:
user = mongo.users_collection.find_one({"yandex_id": self.user_id})
if user is None: