improve category jump

This commit is contained in:
Bui
2020-02-22 13:09:07 +00:00
parent 34d0bd01d4
commit 750dc66245
5 changed files with 20 additions and 8 deletions

2
app.py
View File

@@ -86,7 +86,7 @@ def route_index():
@app.route('/api/preview')
@app.cache.cached(timeout=15)
@app.cache.cached(timeout=15, query_string=True)
def route_api_preview():
song_id = request.args.get('id', None)
if not song_id or not re.match('^[0-9]+$', song_id):