diff --git a/main.go b/main.go index 936a83e..39c4da3 100644 --- a/main.go +++ b/main.go @@ -281,7 +281,8 @@ func getAllTool(db *sql.DB) []Tool { if sort == nil { tool.Sort = 0 } else { - tool.Sort = sort.(int) + i64 := sort.(int64) + tool.Sort = int(i64) } checkErr(err) results = append(results, tool) diff --git a/public/admin/index.html b/public/admin/index.html index 9523f09..3f00de5 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -1,14 +1,15 @@ - -
- - -