diff --git a/main.py b/main.py index 465867d622c01a37caf0e298e9406c3b439c3c2a..99f40b34831c4af27f74c8cf3fbf1b96824f1be3 100644 --- a/main.py +++ b/main.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 -from waitress import serve -from flask import Flask, request, render_template, redirect, abort, Markup -import sqlite3 -import os -import qrcode -import base64 -from io import BytesIO +from waitress import serve #Used as webserver (Production) +from flask import Flask, request, render_template, redirect, abort, Markup #Used to prepare the dynamic pages +import sqlite3 #Used to store the Data +import os #Used for getting the enviorement variables +import qrcode #Used to generate the QR +import base64 #Used to encode the generated QR as base64, to directly insert it into the HTML +from io import BytesIO #Needed for base64 encoding of the image app = Flask(__name__) domain_to_index = {}