changed html format of templates a bit
This commit is contained in:
parent
94de630311
commit
b8cac6db00
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
|
*/__pycache__/
|
||||||
secret_key
|
secret_key
|
||||||
*.db
|
*.db
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<title>Change password</title>
|
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Change password</title>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form method="post" action="{{ url_for('change_password') }}">
|
<form method="post" action="{{ url_for('change_password') }}">
|
||||||
<p>Change your password sir?
|
<p>Change your password sir?
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Let's uploading boys!</title>
|
<title>Let's uploading boys!</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user