From 15045b65286d403d19bbbd1de5b56af0a1db2e2d Mon Sep 17 00:00:00 2001
From: Remik1r3n <remik1r3n@outlook.com>
Date: Sun, 16 Feb 2025 21:45:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E6=83=B3=E9=80=9A=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Best50_To_Diving_Fish.py        |  2 +-
 Standalone/DummyAimeDBServer.py | 11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

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 (