Update clan.go
This commit is contained in:
parent
2e3c779330
commit
1dabbe6b8c
|
@ -92,6 +92,7 @@ func AllClanStatsGET(md common.MethodData) common.CodeMessager {
|
|||
md.Err(err)
|
||||
return Err500
|
||||
}
|
||||
|
||||
defer rows.Close()
|
||||
for rows.Next() {
|
||||
nc := clanLbSingle{}
|
||||
|
@ -109,12 +110,9 @@ func AllClanStatsGET(md common.MethodData) common.CodeMessager {
|
|||
}
|
||||
r.ResponseBase.Code = 200
|
||||
// anyone who ever looks into this, yes, i need to kill myself. ~Flame
|
||||
m, brr := strconv.ParseInt(string(md.Query("m")[19]), 10, 64)
|
||||
m := strconv.ParseInt(string(md.Query("m")[19]), 10, 64)
|
||||
|
||||
|
||||
if brr != nil {
|
||||
fmt.Println(brr)
|
||||
m = 0
|
||||
}
|
||||
n := "std"
|
||||
if m == 1 {
|
||||
n = "taiko"
|
||||
|
@ -145,14 +143,10 @@ func AllClanStatsGET(md common.MethodData) common.CodeMessager {
|
|||
INNER JOIN users
|
||||
ON users.id = uc.user
|
||||
INNER JOIN users_stats ON users_stats.id = uc.user
|
||||
WHERE clan = ? AND privileges & 1 = 1
|
||||
WHERE clan = ? AND privileges >= 3
|
||||
`, rid)
|
||||
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
members.Code = 200
|
||||
members.Code = 200
|
||||
|
||||
if n == "std" {
|
||||
for u := 0; u < len(members.Members); u++ {
|
||||
|
|
Loading…
Reference in New Issue
Block a user