diff --git a/back/tgbot/apps.py b/back/tgbot/apps.py index 9090f06..a6e9946 100644 --- a/back/tgbot/apps.py +++ b/back/tgbot/apps.py @@ -77,7 +77,7 @@ class TgbotConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "tgbot" def ready(self): - if not TgBotUpdater.is_run and os.environ.get("RUN_MAIN", None) == "true": + if not TgBotUpdater.is_run and os.environ.get("RUN_MAIN", None) != "true": threading.Thread( target=(TgBotUpdater().run_func), name="tg_updater_thread",