From cd09877e32b11df267b11da497ec56598fa723cc Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Fri, 31 May 2024 04:39:20 +0000 Subject: [PATCH] =?UTF-8?q?=E9=AF=96=E8=90=BD=E3=81=A1=E5=AF=BE=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index c7a9081..9899a6b 100644 --- a/app.py +++ b/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: