summaryrefslogtreecommitdiff
path: root/src/text_tv.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/text_tv.py')
-rw-r--r--src/text_tv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text_tv.py b/src/text_tv.py
index c0baf90..30b885a 100644
--- a/src/text_tv.py
+++ b/src/text_tv.py
@@ -18,6 +18,10 @@ def top():
now = datetime.datetime.now() if not program_parser.override_date else program_parser.override_date
return f'BornHack S105 {now.strftime("%a %d %b %R:%S")} '
+@app.route('/update')
+def update():
+ return top() + '\n' + flask.render_template('program.html', parts=text())
+
@app.route('/program.json')
def program():