sprint/daemons/management/commands/success_deploy.py
Egor Matveev cb8efd8f0b daemons
2022-03-13 23:21:43 +03:00

11 lines
375 B
Python

from django.contrib.auth.models import User
from django.core.management import BaseCommand
from daemons.management.commands.bot import bot
class Command(BaseCommand):
def handle(self, *args, **options):
for user in User.objects.filter(is_superuser=True):
bot.send_message(user.userinfo.telegram_chat_id, "Деплой прошел успешно")