逆順にする

This commit is contained in:
yuuki 2024-05-31 04:48:11 +00:00
parent cd09877e32
commit df6b051d17

2
app.py
View File

@ -456,7 +456,7 @@ def route_api_preview():
@app.route(basedir + 'api/songs')
@app.cache.cached(timeout=15)
def route_api_songs():
songs = list(db.songs.find({'enabled': True}, {'_id': False, 'enabled': False}).limit(1000))
songs = list(db.songs.find({'enabled': True}, {'_id': False, 'enabled': False}).sort({"order":-1}).limit(1000))
for song in songs:
if song['maker_id']:
if song['maker_id'] == 0: