Add a new feature

- Add support for specifying the songs of which only the `beyond` chart should be served #60
This commit is contained in:
Lost-MSth
2022-07-22 17:20:13 +08:00
parent 93f4ad4999
commit 5fba93524c
5 changed files with 37 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ import server.init
import web.index
import web.login
from core.constant import Constant
from core.download import UserDownload, initialize_songfile
from core.download import UserDownload, initialize_songfile, get_only_3_song_ids
from core.error import ArcError
from core.sql import Connect
from server.func import error_return
@@ -135,6 +135,7 @@ def main():
app.logger.info("Start to initialize song data...")
try:
initialize_songfile()
get_only_3_song_ids()
app.logger.info('Complete!')
except:
app.logger.warning('Initialization error!')