правки для деплоя через Coolify
This commit is contained in:
+4
-4
@@ -119,16 +119,16 @@ async def main():
|
||||
if "duplicate column" not in str(e).lower():
|
||||
logger.warning(f"Migration review.bables: {e}")
|
||||
|
||||
# Создаём настройки для хороших и плохих отзывов при первом запуске.
|
||||
# Существующие настройки (включая автоответы) не трогаем, чтобы они
|
||||
# переживали перезапуск и редеплой.
|
||||
for is_good in [True, False]:
|
||||
settings, _ = await Settings.get_or_create(
|
||||
await Settings.get_or_create(
|
||||
is_good=is_good,
|
||||
defaults={
|
||||
"analysis_enabled": not is_good,
|
||||
},
|
||||
)
|
||||
settings.auto_response_enabled = False
|
||||
settings.auto_response_empty_enabled = False
|
||||
await settings.save()
|
||||
|
||||
workers = asyncio.ensure_future(
|
||||
asyncio.gather(
|
||||
|
||||
Reference in New Issue
Block a user