Skip to content
Snippets Groups Projects

Resolve "Fix typo in Dockerfile"

Merged Daniel Göbel requested to merge bugfix/13-fix-typo-in-dockerfile into main
4 files
+ 11
5
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 5
3
@@ -45,12 +45,14 @@ class UserOutExtended(UserOut, UserRoles):
invitation_token_created_at: int | None = Field(
None, description="Timestamp when the invitation token was created as UNIX timestamp"
)
gravatar_url: URL | None = Field(default=None, description="URL to the gravatar avatar based on the users email")
gravatar_url: URL = Field(description="URL to the gravatar avatar based on the users email")
@staticmethod
def generate_gravatar_url(email: str | None) -> AnyHttpUrl | None:
def generate_gravatar_url(email: str | None) -> AnyHttpUrl:
if email is None:
return None
return AnyHttpUrl(
"https://gravatar.com/avatar/87a8c45825eb709ee8e453d2c0f8154e1b9bf4b45bb9b81b7662177340aa9d38"
)
return AnyHttpUrl(f"https://gravatar.com/avatar/{sha256(email.strip().lower().encode('utf-8')).hexdigest()}")
@staticmethod
Loading