Время синхронизации
Some checks failed
CI / Lint (ruff + mypy) (push) Failing after 36s
CI / Run tests (push) Has been skipped
CI / Docker build test (push) Successful in 18s
Security / Dependency security scan (push) Failing after 10s

This commit is contained in:
2026-03-31 16:41:30 +07:00
parent fd2fb25e45
commit c15e244659
2 changed files with 4 additions and 6 deletions

View File

@@ -218,8 +218,7 @@ def _admin_sync_text() -> str:
[
"<b>Синхронизация</b>",
"",
"Отсюда удобно запускать ручной sync и проверять, "
"когда данные обновлялись в последний раз.",
"Запустите синхронизацию принудительно или установите время автоматической синхронизации.",
]
)

View File

@@ -72,11 +72,10 @@ def admin_home_keyboard() -> InlineKeyboardMarkup:
def admin_sync_keyboard() -> InlineKeyboardMarkup:
builder = InlineKeyboardBuilder()
builder.button(text="Запустить sync", callback_data="admin:sync")
builder.button(text="Автосинк: вкл/выкл", callback_data="admin:settings:sync_enabled")
builder.button(text="Время отчёта", callback_data="admin:settings:digest_time")
builder.button(text="Запустить принудительно", callback_data="admin:sync")
builder.button(text="Выставить время автосинхронизации", callback_data="admin:settings:sync_enabled")
builder.button(text="Назад", callback_data="admin:open")
builder.adjust(2, 1, 1)
builder.adjust(2, 1)
return builder.as_markup()