dkforest

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

commit a923c6c7e15f7bf2f8c4d228f870d65d3f136124
parent 6f3c7c49ca79cc5adefdbe285eeafd1eacf04270
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 11 Jun 2023 14:55:41 -0700

debug code

Diffstat:
Mpkg/web/handlers/handlers.go | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5089,13 +5089,13 @@ func ChessGameHandler(c echo.Context) error { g := interceptors.ChessInstance.GetGame(key) if g == nil { - // Chess debug - user1, _ := db.GetUserByID(1) - user2, _ := db.GetUserByID(30814) - interceptors.ChessInstance.NewGame(key, user1, user2) - g = interceptors.ChessInstance.GetGame(key) - chessGameKingSideCastle(g) - //return c.Redirect(http.StatusFound, "/") + //// Chess debug + //user1, _ := db.GetUserByID(1) + //user2, _ := db.GetUserByID(30814) + //interceptors.ChessInstance.NewGame(key, user1, user2) + //g = interceptors.ChessInstance.GetGame(key) + ////chessGameKingSideCastle(g) + return c.Redirect(http.StatusFound, "/") } isFlipped := authUser.ID == g.Player2.ID