From c8946748b6addb9226fadb522c4ee392ee343fa8 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 21 Jun 2020 15:59:32 +0200 Subject: [PATCH] auto refresh tracker --- WebHost/__init__.py | 2 +- WebHost/templates/tracker.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WebHost/__init__.py b/WebHost/__init__.py index e0ad96ef..d099313a 100644 --- a/WebHost/__init__.py +++ b/WebHost/__init__.py @@ -130,7 +130,7 @@ def host_room(room: int): @app.route('/tracker/') -@cache.memoize(timeout=60 * 5) # update every 5 minutes +@cache.memoize(timeout=60) # update every minute def get_tracker(room: int): # This more WIP than the rest import Items diff --git a/WebHost/templates/tracker.html b/WebHost/templates/tracker.html index dd4b5ab8..3e84c9d9 100644 --- a/WebHost/templates/tracker.html +++ b/WebHost/templates/tracker.html @@ -1,5 +1,6 @@ {% extends 'layout.html' %} {% block head %} + Multiworld Tracker for Room {{ room.id }} {% endblock %} {% block body %}