Fix Arcane handler indentation and encoding
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
from aiogram import F
|
||||
from aiogram.types import Message
|
||||
from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
|
||||
from app import dp, cfg
|
||||
from auth import is_admin_msg
|
||||
from keyboards import docker_kb, arcane_kb
|
||||
from services.arcane import list_projects, restart_project, set_project_state
|
||||
from datetime import datetime
|
||||
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
|
||||
from state import ARCANE_CACHE
|
||||
|
||||
|
||||
@@ -66,10 +65,6 @@ async def cmd_arcane_projects(msg: Message, *, edit: bool, page: int = 0):
|
||||
await msg.answer("⚠️ Arcane config missing", reply_markup=docker_kb)
|
||||
return
|
||||
|
||||
if edit:
|
||||
try:
|
||||
await msg.edit_text("⏳ Arcane projects…")
|
||||
except Exception:
|
||||
if edit:
|
||||
try:
|
||||
await msg.edit_text("⏳ Arcane projects…")
|
||||
@@ -77,8 +72,6 @@ async def cmd_arcane_projects(msg: Message, *, edit: bool, page: int = 0):
|
||||
await msg.answer("⏳ Arcane projects…", reply_markup=arcane_kb)
|
||||
else:
|
||||
await msg.answer("⏳ Arcane projects…", reply_markup=arcane_kb)
|
||||
else:
|
||||
await msg.answer("⏳ Arcane projects…", reply_markup=arcane_kb)
|
||||
|
||||
async def worker():
|
||||
ok, info, items = await asyncio.to_thread(list_projects, base_url, api_key, env_id)
|
||||
|
||||
Reference in New Issue
Block a user