mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-10 09:47:26 +08:00
[Bug fix] Hot fix for typing error & import error
This commit is contained in:
@@ -144,7 +144,7 @@ class DatabaseInit:
|
|||||||
|
|
||||||
def init(self) -> None:
|
def init(self) -> None:
|
||||||
sys.path.append(os.path.join(sys.path[0], self.init_folder_path))
|
sys.path.append(os.path.join(sys.path[0], self.init_folder_path))
|
||||||
self.init_data = import_module('data').InitData
|
self.init_data = import_module('arc_data').InitData
|
||||||
|
|
||||||
with Connect(self.db_path) as c:
|
with Connect(self.db_path) as c:
|
||||||
self.c = c
|
self.c = c
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ class UserPlay(UserScore):
|
|||||||
|
|
||||||
def get_play_state(self) -> None:
|
def get_play_state(self) -> None:
|
||||||
'''检查token,当然这里不管有没有,是用来判断世界模式和课题模式的'''
|
'''检查token,当然这里不管有没有,是用来判断世界模式和课题模式的'''
|
||||||
if self.token == '1145141919810':
|
if self.song_token == '1145141919810':
|
||||||
# 硬编码检查,绕过数据库
|
# 硬编码检查,绕过数据库
|
||||||
self.is_world_mode = False
|
self.is_world_mode = False
|
||||||
self.course_play_state = -1
|
self.course_play_state = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user