mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-12 19:17:26 +08:00
[Bug fix] Course mode cannot start
- Fix a bug due to 4da3f38f6e that course mode cannot start
This commit is contained in:
@@ -269,7 +269,10 @@ class UserPlay(UserScore):
|
|||||||
'''select * from songplay_token where token=:a ''', {'a': self.song_token})
|
'''select * from songplay_token where token=:a ''', {'a': self.song_token})
|
||||||
x = self.c.fetchone()
|
x = self.c.fetchone()
|
||||||
if not x:
|
if not x:
|
||||||
raise NoData('No token data.')
|
self.is_world_mode = False
|
||||||
|
self.course_play_state = -1
|
||||||
|
return None
|
||||||
|
# raise NoData('No token data.')
|
||||||
self.song.set_chart(x[2], x[3])
|
self.song.set_chart(x[2], x[3])
|
||||||
if x[4]:
|
if x[4]:
|
||||||
self.course_play = CoursePlay(self.c, self.user, self)
|
self.course_play = CoursePlay(self.c, self.user, self)
|
||||||
|
|||||||
Reference in New Issue
Block a user