Don't print 0pp scores on std on user/scores/best
This commit is contained in:
parent
2638f8be2a
commit
fde01c6f84
|
@ -63,6 +63,11 @@ func UserScoresBestGET(md common.MethodData) common.CodeMessager {
|
||||||
if cm != nil {
|
if cm != nil {
|
||||||
return *cm
|
return *cm
|
||||||
}
|
}
|
||||||
|
mc := genModeClause(md)
|
||||||
|
// Do not print 0pp scores on std
|
||||||
|
if getMode(md.C.Query("mode")) == "std" {
|
||||||
|
mc += " AND scores.pp > 0"
|
||||||
|
}
|
||||||
return scoresPuts(md, fmt.Sprintf(
|
return scoresPuts(md, fmt.Sprintf(
|
||||||
`WHERE
|
`WHERE
|
||||||
scores.completed = '3'
|
scores.completed = '3'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user