make use of template engine, add footer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4fd2f099b8
commit
48d9621adf
6 changed files with 278 additions and 259 deletions
|
@ -22,7 +22,7 @@ func (s *GamemodeStore) Gamemode(name string) (steamServer.Gamemode, error) {
|
|||
|
||||
func (s *GamemodeStore) Gamemodes() ([]steamServer.Gamemode, error) {
|
||||
var gg []steamServer.Gamemode
|
||||
var query = `SELECT * FROM gamemodes ORDER BY name ASC`
|
||||
var query = `SELECT * FROM public.gamemodes ORDER BY CASE name WHEN 'Deathmatch' THEN 1 WHEN 'MGE' THEN 2 WHEN 'Jumpserver' THEN 3 WHEN 'Casual' THEN 4 END`
|
||||
if err := s.Select(&gg, query); err != nil {
|
||||
return []steamServer.Gamemode{}, fmt.Errorf("error gettings servers: %w", err)
|
||||
}
|
||||
|
|
Reference in a new issue