We shall never forget about #ilbagdellennepì
add support for taiko pp
This commit is contained in:
parent
77093ebef7
commit
6dde2086ac
|
@ -27,7 +27,7 @@ func genmodei(m string) int {
|
|||
}
|
||||
func rankable(m string) bool {
|
||||
x := genmodei(m)
|
||||
return x == 0 || x == 3
|
||||
return x != 2
|
||||
}
|
||||
|
||||
func genUser(c *fasthttp.RequestCtx, db *sqlx.DB) (string, string) {
|
||||
|
|
|
@ -46,8 +46,8 @@ func UserScoresBestGET(md common.MethodData) common.CodeMessager {
|
|||
return *cm
|
||||
}
|
||||
mc := genModeClause(md)
|
||||
// Do not print 0pp scores on std
|
||||
if getMode(md.Query("mode")) == "std" {
|
||||
// For all modes that have PP, we leave out 0 PP scores.
|
||||
if getMode(md.Query("mode")) != "ctb" {
|
||||
mc += " AND scores.pp > 0"
|
||||
}
|
||||
return scoresPuts(md, fmt.Sprintf(
|
||||
|
|
Loading…
Reference in New Issue
Block a user