feat(database): add method to retrieve favourite destinations by destination hash

This commit is contained in:
Ivan
2026-05-02 04:36:00 -05:00
parent 6e2d5ba19a
commit 7d8f5cb854
@@ -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(