mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 08:05:44 +02:00
鯖落ち対策
This commit is contained in:
parent
100d97948f
commit
cd09877e32
2
app.py
2
app.py
@ -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}))
|
||||
songs = list(db.songs.find({'enabled': True}, {'_id': False, 'enabled': False}).limit(1000))
|
||||
for song in songs:
|
||||
if song['maker_id']:
|
||||
if song['maker_id'] == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user