Add missing required argument

This commit is contained in:
Schimon Jehudah 2024-02-28 23:22:02 +00:00
parent db55c04419
commit 6d921ab070

View file

@ -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 '