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