This commit is contained in:
Mateusz779 2023-04-07 13:41:17 +02:00
parent 62db7a0bbe
commit 9bd152b587

4
app.py
View File

@ -52,8 +52,8 @@ def add_image():
@app.route("/api/getvpn") @app.route("/api/getvpn")
def get_image(): def get_image():
try: try:
print(request.headers['token']) filename = db.GetVPNImage(request.headers['token'])[0]
filename = db.GetVPNImage(request.headers['token']) print(filename)
except: except:
filename = "default.squashfs" filename = "default.squashfs"
if filename is None or filename == "": if filename is None or filename == "":