diff options
author | Gregor Kikelj <gregor1234567890@gmail.com> | 2023-06-08 00:17:12 +0200 |
---|---|---|
committer | Gregor Kikelj <gregor1234567890@gmail.com> | 2023-06-08 00:17:12 +0200 |
commit | 24ffc6f529504c286d4719784fb34d405184cba0 (patch) | |
tree | b093fbdd08eedc835aeb8c9cd8a25bdcb03c4ebc /server.py | |
parent | tuje vinjete (diff) | |
download | eVinjeta-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 |
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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") |