From 15f4dad630fd7b2234ed6eae4413c7f024535540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20G=C3=B6tz?= Date: Fri, 25 Jan 2019 01:21:49 +0100 Subject: [PATCH] Update date formatting --- main.py | 3 ++- templates/index.html | 28 +++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/main.py b/main.py index d0fa8c6..b153d09 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ HOST = '192.168.0.3' DB = 'hackmd' USER = 'hackmd' PASSWORD = 'osHx34e4aDazGsER' +CODI_URL = "https://hackmd.wiai.de" #lastchangeAt, alias, viewcount @app.route("/") @@ -21,7 +22,7 @@ def main(): print(notes) cur.close() conn.close() - return render_template('index.html', notes=notes) + return render_template('index.html', notes=notes, host=CODI_URL) if __name__ == '__main__': diff --git a/templates/index.html b/templates/index.html index cb5479c..4d77076 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,21 +16,19 @@
{% for note in notes %} {% if note[1] and note[2] %} -