From 9d739ec032f43822258f12665a715a6ff7afe2dc Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Tue, 24 May 2022 21:10:42 +0300 Subject: [PATCH] notify fix --- daemons/management/commands/notification_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/management/commands/notification_manager.py b/daemons/management/commands/notification_manager.py index a4c7152..330de5c 100644 --- a/daemons/management/commands/notification_manager.py +++ b/daemons/management/commands/notification_manager.py @@ -22,8 +22,8 @@ class Command(MessagingSupport): yield "email", {"subject": "Тестирование завершено", "message": message, "email": user.email} def handle_friends_add(self, payload): - user = User.objects.get(id=payload['to_user_id']) - from_user = User.objects.get(id=payload['from_user_id']) + user = User.objects.get(id=payload['to_user']) + from_user = User.objects.get(id=payload['from_user']) if user.userinfo.notification_friends: message = f"Пользователь {from_user.username} хочет добавить тебя в друзья" if user.userinfo.notification_telegram: