Skip to content

Commit

Permalink
fix(black): files format
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Aug 30, 2023
1 parent e54379d commit c129704
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions les_louisdelatech/utils/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __hash__(self):
return hash((self.firstname, self.lastname))

def attr_differ(
self, other: Self, attr_to_ignore: List[str] = ["_team", "_position", "discord_id", "is_admin"]
self,
other: Self,
attr_to_ignore: List[str] = ["_team", "_position", "discord_id", "is_admin"],
):
diffs = []
for key in filter(
Expand Down Expand Up @@ -179,7 +181,9 @@ def from_google(cls, user: Dict):
return cls(
user["name"]["givenName"],
user["name"]["familyName"],
datetime.strptime(user["customSchemas"]["custom"]["birthdate"], "%d/%m/%Y").replace(tzinfo=timezone.utc)
datetime.strptime(
user["customSchemas"]["custom"]["birthdate"], "%d/%m/%Y"
).replace(tzinfo=timezone.utc)
if "birthdate" in user["customSchemas"]["custom"]
else None,
user["customSchemas"]["custom"]["pseudo"]
Expand Down

0 comments on commit c129704

Please sign in to comment.