Skip to content

Commit

Permalink
Use DARK_FEN in data-fen
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 22, 2025
1 parent b275e97 commit 6980c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from const import (
ANON_PREFIX,
DARK_FEN,
DASH,
LANGUAGES,
NONE_USER,
Expand Down Expand Up @@ -578,7 +579,7 @@ def video_target(target):
render["btitle"] = game.bplayer.title
render["brating"] = game.brating
render["brdiff"] = game.brdiff
render["fen"] = game.fen
render["fen"] = DARK_FEN if game.variant == "fogofwar" else game.fen
render["base"] = game.base
render["inc"] = game.inc
render["byo"] = game.byoyomi_period
Expand Down

0 comments on commit 6980c5f

Please sign in to comment.