dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 9af2387f34a0a08fc30549286900ed641c0a29b4
parent 59c216876d75983994e0a39076fb444a784474bd
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 16 Jun 2023 21:26:26 -0700

redirect after chess analyze done

Diffstat:
Mpkg/web/handlers/chess.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go @@ -144,7 +144,7 @@ func ChessGameAnalyseHandler(c echo.Context) error { g.DbChessGame.AccuracyWhite = res.WhiteAccuracy g.DbChessGame.AccuracyBlack = res.BlackAccuracy g.DbChessGame.DoSave(db) - return c.String(http.StatusOK, "done") + return c.Redirect(http.StatusFound, c.Request().Referer()) } func ChessGameStatsHandler(c echo.Context) error {