mirror of
https://codeberg.org/sch/BukuBot
synced 2024-11-17 11:38:41 +01:00
Add missing required argument
This commit is contained in:
parent
db55c04419
commit
6d921ab070
1 changed files with 4 additions and 4 deletions
|
@ -224,7 +224,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
|||
case 'last':
|
||||
idx = bookmarks_db.get_max_id()
|
||||
result = bookmarks_db.get_rec_by_id(idx)
|
||||
message_body = self.format_message(result)
|
||||
message_body = self.format_message(result, False)
|
||||
case _ if message_lowercase.startswith('search any '):
|
||||
query = message_lowercase[11:]
|
||||
query = query.split(' ')
|
||||
|
@ -234,7 +234,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
|||
regex=False)
|
||||
message_body = '*Results for query: {}*\n\n'.format(query)
|
||||
for result in results:
|
||||
message_body += self.format_message(result) + '\n\n'
|
||||
message_body += self.format_message(result, False) + '\n\n'
|
||||
message_body += '*Total of {} results*'.format(len(results))
|
||||
case _ if message_lowercase.startswith('search '):
|
||||
query = message_lowercase[7:]
|
||||
|
@ -245,7 +245,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
|||
regex=False)
|
||||
message_body = '*Results for query: {}*\n\n'.format(query)
|
||||
for result in results:
|
||||
message_body += self.format_message(result) + '\n\n'
|
||||
message_body += self.format_message(result, False) + '\n\n'
|
||||
message_body += '*Total of {} results*\n\n'.format(len(results))
|
||||
# elif message.startswith('regex'):
|
||||
# message_body = bookmark_regexp(message[7:])
|
||||
|
@ -327,7 +327,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
|||
results = bookmarks_db.search_by_tag(tag)
|
||||
message_body = '*Results for tag: {}*\n\n'.format(tag)
|
||||
for result in results:
|
||||
message_body += self.format_message(result) + '\n\n'
|
||||
message_body += self.format_message(result, False) + '\n\n'
|
||||
message_body += '*Total of {} results*'.format(len(results))
|
||||
case _:
|
||||
message_body = ('Unknown command. Send "help" for list '
|
||||
|
|
Loading…
Reference in a new issue