PATCH: removed commit_data method from database as it is no longer necessary

This commit is contained in:
white
2025-01-29 11:59:12 +00:00
parent e2070be9f9
commit f63dc4a368
5 changed files with 1 additions and 6 deletions

View File

@@ -130,7 +130,6 @@ def reset_password(new_password: str, email: str):
try:
db.execute("UPDATE users SET password = ? WHERE email = ?", (generate_password_hash(new_password), email))
db.commit_data()
return True
except Exception as e:
print(f"Error: {e}")