mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-13 03:27:26 +08:00
Fix some bugs
- Second try to fix a bug about API - Fix a bug that the `prog boost` shows the incorrect value - Fix a bug that the rewards can be get repeatedly in World Mode - Fix a bug that second tube of blood of the world boss won't change
This commit is contained in:
@@ -224,7 +224,7 @@ class UserPlay(UserScore):
|
||||
r['user_rating'] = self.user.rating_ptt
|
||||
r['finale_challenge_higher'] = self.rating > self.ptt.value
|
||||
r['global_rank'] = self.user.global_rank
|
||||
r['finale_play_value'] = 0 # emmmm
|
||||
r['finale_play_value'] = self.rating * 5 # emmmm
|
||||
return r
|
||||
|
||||
@property
|
||||
@@ -286,7 +286,7 @@ class UserPlay(UserScore):
|
||||
self.c.execute('''select prog_boost from user where user_id=:a''', {
|
||||
'a': self.user.user_id})
|
||||
x = self.c.fetchone()
|
||||
if x and x[0] == 1:
|
||||
if x and x[0] == 300:
|
||||
self.prog_boost_multiply = 300
|
||||
|
||||
self.clear_play_state()
|
||||
@@ -566,7 +566,6 @@ class UserScoreList:
|
||||
|
||||
self.query.query_append({'user_id': self.user.user_id})
|
||||
self.query.sort += [{'column': 'rating', 'order': 'DESC'}]
|
||||
print(self.query.sort)
|
||||
x = Sql(self.c).select('best_score', query=self.query)
|
||||
|
||||
self.scores = [UserScore(self.c, self.user).from_list(i) for i in x]
|
||||
|
||||
Reference in New Issue
Block a user