mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-05-12 15:54:43 +00:00
feat(database): add method to retrieve favourite destinations by destination hash
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user