Skip to content

Commit

Permalink
Fix Commit 0495
Browse files Browse the repository at this point in the history
  • Loading branch information
SriMethan committed Nov 19, 2023
1 parent 7638d14 commit 1e6454f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
logging.basicConfig(level=logging.DEBUG)

URI = os.getenv("URI", "http://127.0.0.1:8080")
DEV = ("pr" in URI) or ("dev" in URI) or ("gitpod" in URI) or URI.startswith("http:")
DEV = ("pr" in URI)
BR_EXTENSION = ".br" if URI.startswith("https") else ""

REDIRECT_PATH = "/oauth" # path of oauth callback in app
Expand Down
4 changes: 2 additions & 2 deletions server/tournaments.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ async def get_latest_tournaments(app, lang):
tournament.nb_players = doc["nbPlayers"]

if tournament.frequency:
tournament.translated_name = app["tourneynames"][lang][
tournament = app["tourneynames"][lang][
(
tournament.variant + ("960" if tournament.chess960 else ""),
tournament.frequency,
tournament.system,
)
]
else:
tournament.translated_name = tournament.name
tournament = tournament.name

if doc["status"] == T_STARTED:
started.append(tournament)
Expand Down

0 comments on commit 1e6454f

Please sign in to comment.