Compare commits

..

1 Commits

Author SHA1 Message Date
6beb6e20d7 changed html format of templates a bit 2018-03-03 11:27:02 -05:00

View File

@ -154,7 +154,7 @@ def delete_file():
try: try:
os.remove(os.path.join(app.config.get("UPLOAD_DIR"), filename)) os.remove(os.path.join(app.config.get("UPLOAD_DIR"), filename))
db.execute("DELETE FROM uploads WHERE filename = ?", (filename,)) db.execute("DELETE FROM uploads WHERE filename = ?", (filename,))
db.commit() con.commit()
except FileNotFoundError: except FileNotFoundError:
return "Error: File not found." return "Error: File not found."
return "Success" return "Success"