Fixed all pep8 warnings

This commit is contained in:
2024-01-21 22:22:29 +00:00
parent 44c1ee03ba
commit bca3b0a663
14 changed files with 64 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ blueprint.register_blueprint(user.blueprint)
blueprint.register_blueprint(product.blueprint)
### CONTEXTS ###
# CONTEXTS #
# Function that returns a given user class based on the ID in the session
@blueprint.context_processor
@@ -21,7 +21,7 @@ def get_user() -> dict[User | None]:
user_id = session.get('user_id')
user = None
if user_id != None:
if user_id is not None:
db = UserController()
user = db.read_id(user_id)