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 @@