mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
client: implement a buggy scrollIntoView in queue view
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ def getFolderTree(folder: str = None):
|
||||
song['type']['name'] = "folder"
|
||||
song['type']['id'] = req_dir
|
||||
|
||||
return {"files": songs, "folders": folders}
|
||||
return {"files": songs, "folders": sorted(folders, key= lambda i: i['name'])}
|
||||
|
||||
|
||||
@bp.route('/get/queue', methods=['POST'])
|
||||
|
||||
@@ -52,7 +52,7 @@ class AllSongs(Mongo):
|
||||
return self.collection.find().limit(25)
|
||||
|
||||
def find_songs_by_folder(self, query):
|
||||
return self.collection.find({'folder': query})
|
||||
return self.collection.find({'folder': query}).sort('title', pymongo.ASCENDING)
|
||||
|
||||
def find_songs_by_folder_og(self, query):
|
||||
return self.collection.find({'folder': query})
|
||||
|
||||
Reference in New Issue
Block a user