From d224acc1711bee67745cfbcc92ef914df204d6fb Mon Sep 17 00:00:00 2001 From: sqozz Date: Thu, 6 May 2021 19:26:51 +0200 Subject: [PATCH] Make map endpoints configurable --- homepage/html/index.html | 4 ++-- homepage/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homepage/html/index.html b/homepage/html/index.html index 6cf7e9b..c86347e 100644 --- a/homepage/html/index.html +++ b/homepage/html/index.html @@ -20,7 +20,7 @@
- +
Map
@@ -46,7 +46,7 @@ Datapacks: % end Datapacks can be found on https://vanillatweaks.net/ - +
Download world
diff --git a/homepage/main.py b/homepage/main.py index dcfada3..cf41c9f 100644 --- a/homepage/main.py +++ b/homepage/main.py @@ -20,7 +20,7 @@ BG_IMAGES = listdir("./static/img/background") def index(): print(server_details()) players = currentPlayerData() - return template("html/index.html", **{"player_count": players["count"]["current"] , "max_players": players["count"]["max"], "news": news(), "donations": donations(), "server_details": server_details()}) + return template("html/index.html", **{"player_count": players["count"]["current"] , "max_players": players["count"]["max"], "news": news(), "donations": donations(), "server_details": server_details(), "map_url": CONFIG["external"]["map"], "map_download_url": CONFIG["external"]["map_download"]}) @route("/getPlayerSkins") def getPlayerSkins():