This commit is contained in:
parent
d9051ee6c0
commit
de05933386
@ -46,7 +46,7 @@ class ListHandler(BaseHandler):
|
|||||||
|
|
||||||
async def entry_point(self, update, context) -> None:
|
async def entry_point(self, update, context) -> None:
|
||||||
await super().entry_point(update, context)
|
await super().entry_point(update, context)
|
||||||
set_db(DB_DIR / f"{update.message.chat_id}.db")
|
set_db(DB_DIR / f"chat_{update.message.chat_id}.db")
|
||||||
with db:
|
with db:
|
||||||
lists = ListModel.select()
|
lists = ListModel.select()
|
||||||
keyboard = [[InlineKeyboardButton(k.name, callback_data=f"list-{k.name}")] for k in lists] + \
|
keyboard = [[InlineKeyboardButton(k.name, callback_data=f"list-{k.name}")] for k in lists] + \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user