diff --git a/Best50_To_Diving_Fish.py b/Best50_To_Diving_Fish.py index 333d081..72af187 100644 --- a/Best50_To_Diving_Fish.py +++ b/Best50_To_Diving_Fish.py @@ -79,7 +79,7 @@ def maimaiUserMusicDetailToDivingFishFormat(userMusicDetailList) -> list: divingFishList.append({ 'achievements': (currentMusicDetail['achievement'] / 10000), # 水鱼的成绩是 float 而非舞萌的 int 'title': currentMusicTitle, - 'type': notesType, # 我不理解这为什么不能在后端判断 + 'type': notesType, 'level_index': currentMusicDetail['level'], 'fc': COMBO_ID_TO_NAME[currentMusicDetail['comboStatus']], 'fs': SYNC_ID_TO_NAME[currentMusicDetail['syncStatus']], diff --git a/Standalone/DummyAimeDBServer.py b/Standalone/DummyAimeDBServer.py index 308af94..43f9002 100644 --- a/Standalone/DummyAimeDBServer.py +++ b/Standalone/DummyAimeDBServer.py @@ -14,11 +14,12 @@ from loguru import logger import argparse try: parser = argparse.ArgumentParser(description="舞萌DX AimeDB 服务器模拟实现") - parser.add_argument("userId", type=int, help="用户 ID") - args = parser.parse_args() - DUMMY_USER_ID = args.userId -except: - logger.warning("未传入用户 ID,使用默认值") + #parser.add_argument("userId", type=int, help="用户 ID") + #args = parser.parse_args() + #DUMMY_USER_ID = args.userId + raise Exception("未传入用户 ID") +except Exception as e: + logger.warning(f"{e},未传入用户 ID,使用默认值") DUMMY_USER_ID = 1 from fastapi import (