ddd
This commit is contained in:
parent
ecd574fcd0
commit
ea60434e8d
|
@ -744,7 +744,7 @@ def updateStatsAp(userID, __score):
|
||||||
|
|
||||||
# Update total score and playcount
|
# Update total score and playcount
|
||||||
glob.db.execute(
|
glob.db.execute(
|
||||||
"UPDATE users_stats SET total_score_{m}_ap=total_score_{m}_a-+%s, playcount_{m}_ap=playcount_{m}_ap+1 WHERE id = %s LIMIT 1".format(
|
"UPDATE users_stats SET total_score_{m}_ap=total_score_{m}_ap-+%s, playcount_{m}_ap=playcount_{m}_ap+1 WHERE id = %s LIMIT 1".format(
|
||||||
m=mode), [__score.score, userID])
|
m=mode), [__score.score, userID])
|
||||||
|
|
||||||
# Calculate new level and update it
|
# Calculate new level and update it
|
||||||
|
@ -754,7 +754,7 @@ def updateStatsAp(userID, __score):
|
||||||
if __score.passed:
|
if __score.passed:
|
||||||
# Update ranked score
|
# Update ranked score
|
||||||
glob.db.execute(
|
glob.db.execute(
|
||||||
"UPDATE users_stats SET ranked_score_{m}=ranked_score_{m}+%s WHERE id = %s LIMIT 1".format(m=mode),
|
"UPDATE users_stats SET ranked_score_{m}_ap=ranked_score_{m}_ap+%s WHERE id = %s LIMIT 1".format(m=mode),
|
||||||
[__score.rankedScoreIncrease, userID])
|
[__score.rankedScoreIncrease, userID])
|
||||||
|
|
||||||
# Update accuracy
|
# Update accuracy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user