mirror of
https://codeberg.org/sch/BukuBot
synced 2024-12-22 18:05:24 +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':
|
case 'last':
|
||||||
idx = bookmarks_db.get_max_id()
|
idx = bookmarks_db.get_max_id()
|
||||||
result = bookmarks_db.get_rec_by_id(idx)
|
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 '):
|
case _ if message_lowercase.startswith('search any '):
|
||||||
query = message_lowercase[11:]
|
query = message_lowercase[11:]
|
||||||
query = query.split(' ')
|
query = query.split(' ')
|
||||||
|
@ -234,7 +234,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
||||||
regex=False)
|
regex=False)
|
||||||
message_body = '*Results for query: {}*\n\n'.format(query)
|
message_body = '*Results for query: {}*\n\n'.format(query)
|
||||||
for result in results:
|
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))
|
message_body += '*Total of {} results*'.format(len(results))
|
||||||
case _ if message_lowercase.startswith('search '):
|
case _ if message_lowercase.startswith('search '):
|
||||||
query = message_lowercase[7:]
|
query = message_lowercase[7:]
|
||||||
|
@ -245,7 +245,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
||||||
regex=False)
|
regex=False)
|
||||||
message_body = '*Results for query: {}*\n\n'.format(query)
|
message_body = '*Results for query: {}*\n\n'.format(query)
|
||||||
for result in results:
|
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))
|
message_body += '*Total of {} results*\n\n'.format(len(results))
|
||||||
# elif message.startswith('regex'):
|
# elif message.startswith('regex'):
|
||||||
# message_body = bookmark_regexp(message[7:])
|
# message_body = bookmark_regexp(message[7:])
|
||||||
|
@ -327,7 +327,7 @@ class Slixmark(slixmpp.ClientXMPP):
|
||||||
results = bookmarks_db.search_by_tag(tag)
|
results = bookmarks_db.search_by_tag(tag)
|
||||||
message_body = '*Results for tag: {}*\n\n'.format(tag)
|
message_body = '*Results for tag: {}*\n\n'.format(tag)
|
||||||
for result in results:
|
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))
|
message_body += '*Total of {} results*'.format(len(results))
|
||||||
case _:
|
case _:
|
||||||
message_body = ('Unknown command. Send "help" for list '
|
message_body = ('Unknown command. Send "help" for list '
|
||||||
|
|
Loading…
Reference in a new issue