summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Kikelj <gregor1234567890@gmail.com>2023-06-08 00:17:12 +0200
committerGregor Kikelj <gregor1234567890@gmail.com>2023-06-08 00:17:12 +0200
commit24ffc6f529504c286d4719784fb34d405184cba0 (patch)
treeb093fbdd08eedc835aeb8c9cd8a25bdcb03c4ebc
parenttuje vinjete (diff)
downloadeVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar.gz
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar.bz2
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar.lz
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar.xz
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.tar.zst
eVinjeta-24ffc6f529504c286d4719784fb34d405184cba0.zip
-rw-r--r--server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.py b/server.py
index 6f968f3..893acb3 100644
--- a/server.py
+++ b/server.py
@@ -116,6 +116,9 @@ def apcall_global():
@app.route("/", methods=["GET"])
def index():
+ user_language = request.accept_languages.best_match(["sl", "en"])
+ if user_language == "en":
+ return render_template("index_global.html")
app.logger.info("Zahteva za domačo stran")
# discordLog(f"Zahteva za domačo stran ob {niceTime()}")
return render_template("index.html")