Fixed first database creation, added default values for some get's

This commit is contained in:
BarsTiger
2023-05-19 14:51:10 +03:00
parent 5f079c5246
commit c332dc4d21
13 changed files with 33 additions and 32 deletions

View File

@@ -15,7 +15,7 @@ async def on_global_settings_kb_open(call: types.CallbackQuery):
@wrap_exception()
@throttle(cooldown=60*60, admin_ids=db[DBTables.config].get('admins'), by_id=False)
@throttle(cooldown=60*60, admin_ids=db[DBTables.config].get('admins', []), by_id=False)
async def on_set_model(call: types.CallbackQuery):
from bot.keyboards.set_model import get_set_model_keyboard
from bot.modules.api.models import get_models