diff --git a/print/start.py b/print/start.py index 0258a2b..111bf3a 100644 --- a/print/start.py +++ b/print/start.py @@ -44,7 +44,11 @@ def check(): already_in_db = televex.update_db(db, db_path, txt, source, date) if already_in_db == False: televex.print_now(txt, lp=lp, type='rss') - + +@APP.route('/', methods=['GET']) +def index(): + return flask.render_template('index.html') + @APP.route('/print/', methods=['GET', 'POST']) def print(): txt = request.args.get('printing', '') diff --git a/print/static/stylesheet.css b/print/static/stylesheet.css index 8b665f5..1ec8f8b 100644 --- a/print/static/stylesheet.css +++ b/print/static/stylesheet.css @@ -20,4 +20,4 @@ div.msg pre{ width: 400px; word-break: break-word; white-space: pre-wrap; -} \ No newline at end of file +} diff --git a/print/static/televex-feb-2021.jpg b/print/static/televex-feb-2021.jpg new file mode 100644 index 0000000..64027c7 Binary files /dev/null and b/print/static/televex-feb-2021.jpg differ diff --git a/print/templates/index.html b/print/templates/index.html new file mode 100644 index 0000000..7306d76 --- /dev/null +++ b/print/templates/index.html @@ -0,0 +1,12 @@ + + +
+ +