server: 😜 fix remove dups

This commit is contained in:
geoffrey45
2021-12-29 22:49:58 +03:00
parent 6dbf8efb90
commit c8d1f5f012
3 changed files with 18 additions and 4 deletions
+3
View File
@@ -48,6 +48,9 @@ class AllSongs(Mongo):
def find_songs_by_album(self, name, artist):
return self.collection.find({'album': name, 'album_artist': artist})
def get_songs_by_album(self, query):
return self.collection.find({'album': query})
def get_all_songs(self):
return self.collection.find().limit(25)