diff --git a/main.py b/main.py index 7e184a7..551b9b9 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,18 @@ from flask import Flask, render_template, jsonify, request, session, redirect import sqlite3 +import os import time +import qrcode +import shutil + +if not os.path.exists("./static/img/qr.png"): + img = qrcode.make('127.0.0.1:5000') + type(img) + img.save("qr.png") + ort = "./static/img" + shutil.move("qr.png", ort) + + app = Flask(__name__, template_folder='templates/') date = time.strftime("%d-%m-%Y %H:%M:%S", time.localtime(time.time())) diff --git a/static/img/qr.png b/static/img/qr.png new file mode 100644 index 0000000..df1aa31 Binary files /dev/null and b/static/img/qr.png differ diff --git a/templates/controll.html b/templates/controll.html index 68f883c..a55e0ef 100644 --- a/templates/controll.html +++ b/templates/controll.html @@ -17,19 +17,6 @@ -
Füge ein Event ein
- -An dieser Stelle sollen später die User angezeigt werden, und der Session Admin kann diese dann verwalten
diff --git a/templates/planer.html b/templates/planer.html index 8a58d9b..32924ef 100644 --- a/templates/planer.html +++ b/templates/planer.html @@ -8,6 +8,18 @@Füge ein Event ein
+ + +