From 7d8f5cb8549aeb67f6d7e1cc66085cc9d4a34d36 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 2 May 2026 04:36:00 -0500 Subject: [PATCH] feat(database): add method to retrieve favourite destinations by destination hash --- meshchatx/src/backend/database/announces.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meshchatx/src/backend/database/announces.py b/meshchatx/src/backend/database/announces.py index 4235a79..5949e28 100644 --- a/meshchatx/src/backend/database/announces.py +++ b/meshchatx/src/backend/database/announces.py @@ -191,6 +191,12 @@ class AnnounceDAO: (destination_hash, display_name, aspect, now, now), ) + def get_favourite_by_destination_hash(self, destination_hash): + return self.provider.fetchone( + "SELECT * FROM favourite_destinations WHERE destination_hash = ?", + (destination_hash,), + ) + def get_favourites(self, aspect=None): if aspect: return self.provider.fetchall(