auto refresh tracker

This commit is contained in:
Fabian Dill 2020-06-21 15:59:32 +02:00
parent 8d8eae1a48
commit c8946748b6
2 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def host_room(room: int):
@app.route('/tracker/<int:room>')
@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

View File

@ -1,5 +1,6 @@
{% extends 'layout.html' %}
{% block head %}
<meta http-equiv="refresh" content="60">
<title>Multiworld Tracker for Room {{ room.id }}</title>
{% endblock %}
{% block body %}