From 6d921ab070fa2fd4ab452af89f12ffe42a5d09ab Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Wed, 28 Feb 2024 23:22:02 +0000 Subject: [PATCH] Add missing required argument --- slixmark.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slixmark.py b/slixmark.py index f031cc2..a3e9ecf 100644 --- a/slixmark.py +++ b/slixmark.py @@ -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 '