From 6beb6e20d736fd2ac12968c626cb0488b799e0a5 Mon Sep 17 00:00:00 2001 From: iou1name Date: Sat, 3 Mar 2018 11:20:39 -0500 Subject: [PATCH] changed html format of templates a bit --- fileHost.py | 2 +- templates/change_password.html | 4 +++- templates/index.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fileHost.py b/fileHost.py index b6e6ae7..47ccb1f 100755 --- a/fileHost.py +++ b/fileHost.py @@ -154,7 +154,7 @@ def delete_file(): try: os.remove(os.path.join(app.config.get("UPLOAD_DIR"), filename)) db.execute("DELETE FROM uploads WHERE filename = ?", (filename,)) - db.commit() + con.commit() except FileNotFoundError: return "Error: File not found." return "Success" diff --git a/templates/change_password.html b/templates/change_password.html index 5a16a72..233f58d 100644 --- a/templates/change_password.html +++ b/templates/change_password.html @@ -1,6 +1,8 @@ -Change password + + Change password +

Change your password sir? diff --git a/templates/index.html b/templates/index.html index 877ed17..6f5fae2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,5 @@ - + Let's uploading boys!