Browse Source

merge appends and remove shiet

tags/v1.8.0
Michael Zhang 1 year ago
parent
commit
8eeb6ed67e
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions
  1. 1
    2
      beatmap.go
  2. 0
    1
      templates/beatmap.html

+ 1
- 2
beatmap.go View File

@@ -64,8 +64,7 @@ func beatmapInfo(c *gin.Context) {
}

data.TitleBar = T(c, "%s - %s", data.Beatmapset.Artist, data.Beatmapset.Title)
data.Scripts = append(data.Scripts, "/static/tablesort.js")
data.Scripts = append(data.Scripts, "/static/beatmap.js")
data.Scripts = append(data.Scripts, "/static/tablesort.js", "/static/beatmap.js")
}

func getBeatmapData(b string) (beatmap models.Beatmap, err error) {

+ 0
- 1
templates/beatmap.html View File

@@ -58,7 +58,6 @@
<script>
{{ $p := .Gin.Query "p" }}
{{ $favModeRaw := .Get "users/self/favourite_mode" }}
var shiet = {{ $favModeRaw }};
var beatmapID = {{ .Beatmap.ID }};
var setData = JSON.parse({{ .SetJSON }});

Loading…
Cancel
Save