From 1e6454f22b773cc21f774016c6712438e7bd7e71 Mon Sep 17 00:00:00 2001 From: Methan Sritharan Date: Sun, 19 Nov 2023 02:05:39 +0000 Subject: [PATCH] Fix Commit 0495 --- server/settings.py | 2 +- server/tournaments.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/settings.py b/server/settings.py index 805f94fcd..d66db06c4 100644 --- a/server/settings.py +++ b/server/settings.py @@ -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 diff --git a/server/tournaments.py b/server/tournaments.py index a9f1b85ed..fd065fa42 100644 --- a/server/tournaments.py +++ b/server/tournaments.py @@ -285,7 +285,7 @@ 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, @@ -293,7 +293,7 @@ async def get_latest_tournaments(app, lang): ) ] else: - tournament.translated_name = tournament.name + tournament = tournament.name if doc["status"] == T_STARTED: started.append(tournament)