fixing recursion issues

This commit is contained in:
Remy Moll
2021-07-12 18:42:14 +02:00
parent a3d8a3543d
commit b457999d3d
13 changed files with 44 additions and 80 deletions

View File

@@ -26,7 +26,6 @@ class Alias(BotFunc):
def entry_point(self, update: Update, context: CallbackContext) -> None:
test = self.dispatcher
print(self.dispatcher.handlers[0])
keyboard = [
[InlineKeyboardButton("All aliases", callback_data="all")],
[InlineKeyboardButton("Create new alias", callback_data="new")],

View File

@@ -163,7 +163,6 @@ class Lists(BotFunc):
item = update.message.text
it = self.db.lists.get(self.db.lists.name == self.current_name)
sl = it.content
print("SLSLLLL: {} -- {}".format(sl, type(sl)))
sl += item + "<-->"
self.db.lists.update(content=sl).where(self.db.lists.name == self.current_name).execute()

View File

@@ -83,7 +83,7 @@ class Status(BotFunc):
query = update.callback_query
wanted = query.data.replace("status-","")
query.answer()
with open("persistence/complete.log") as l:
with open("persistence/server.log") as l:
query.message.reply_document(l)
super().log_activity(read = False, execute = False, send = True)