Fix handleDailySeed

pull/9/head^2
maru 2024-05-10 15:37:24 -04:00
parent b91c169b16
commit 17294e5179
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 1 additions and 8 deletions

View File

@ -19,7 +19,6 @@ package api
import (
"database/sql"
"encoding/base64"
"encoding/json"
"fmt"
"net/http"
@ -340,13 +339,7 @@ func handleDailySeed(w http.ResponseWriter, r *http.Request) {
return
}
bytes, err := base64.StdEncoding.DecodeString(seed)
if err != nil {
httpError(w, r, err, http.StatusInternalServerError)
return
}
w.Write(bytes)
w.Write([]byte(seed))
}
func handleDailyRankings(w http.ResponseWriter, r *http.Request) {