test
This commit is contained in:
parent
833fe0072c
commit
79badebec8
4
obj.go
4
obj.go
@ -170,7 +170,7 @@ func loadObjCastle() error {
|
|||||||
|
|
||||||
cacheObjCastle = make(map[string]ChatWarsCastle)
|
cacheObjCastle = make(map[string]ChatWarsCastle)
|
||||||
|
|
||||||
castles, err := db.Query(`SELECT oc.obj_id, oc.logo, oc.name FROM obj_castle oc ORDER BY oc.id DESC;`)
|
castles, err := db.Query(`SELECT oc.obj_id, oc.logo, oc.name FROM obj_castle oc;`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ func loadObjGuild() error {
|
|||||||
|
|
||||||
cacheObjGuild = make(map[string]ChatWarsGuild)
|
cacheObjGuild = make(map[string]ChatWarsGuild)
|
||||||
|
|
||||||
guilds, err := db.Query(`SELECT og.obj_id, og.tag, og.name FROM obj_guild og ORDER BY oc.id DESC;`)
|
guilds, err := db.Query(`SELECT og.obj_id, og.tag, og.name FROM obj_guild og;`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user