Fix two small bugs

- Fix a bug that something of the finale challenge cannot be unlocked
- Fix a bug that the users' items will not be zero, which will disturb some purchase operations
This commit is contained in:
Lost-MSth
2022-08-03 15:44:46 +08:00
parent d852be8029
commit b38dbf1a55
4 changed files with 4 additions and 5 deletions

View File

@@ -222,6 +222,7 @@ class UserPlay(UserScore):
else:
r = {}
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
return r