Skip to content

Commit a41d476

Browse files
committed
Ruff
1 parent 8ca7ff5 commit a41d476

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/utils/auth/providers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,7 @@ def get_userinfo(self, user: models_users.CoreUser) -> dict[str, Any]:
175175
# A modified Piwigo oidc plugin allows managing groups from the oidc provider
176176
promo = user.promo
177177
if promo is not None:
178-
if promo >= 2014:
179-
promo = str(promo)
180-
else:
181-
promo = None
178+
promo = str(promo) if promo >= 2014 else None
182179
return {
183180
"sub": user.id,
184181
"name": user.full_name,

0 commit comments

Comments
 (0)