From 97eee0e27ab6287b35644acee2fd4d7d3a47f0ca Mon Sep 17 00:00:00 2001 From: Bui Date: Mon, 27 Aug 2018 23:22:09 +0100 Subject: [PATCH] update songs path --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index ae3039a..b0f28f2 100644 --- a/app.py +++ b/app.py @@ -71,9 +71,9 @@ def route_api_songs(): songs = query_db('select * from songs where enabled = 1') songs_out = [] for song in songs: - osus = [osu for osu in os.listdir('songs/%s' % song[0]) if osu in ['easy.osu', 'normal.osu', 'hard.osu', 'oni.osu']] + osus = [osu for osu in os.listdir('public/songs/%s' % song[0]) if osu in ['easy.osu', 'normal.osu', 'hard.osu', 'oni.osu']] if osus: - osud = parse_osu('songs/%s/%s' % (song[0], osus[0])) + osud = parse_osu('public/songs/%s/%s' % (song[0], osus[0])) preview = int(get_osu_key(osud, 'General', 'PreviewTime', 0)) else: preview = 0