Pridani sitemap, fix flake

This commit is contained in:
Michal Kváček
2024-02-26 09:44:40 +01:00
parent ff32c36a94
commit 1f8b338297
34 changed files with 590 additions and 205 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ from pydantic import EmailStr
class Email(MessageSchema):
template: str
def __init__(self, to: list[EmailStr | str], subject: str, template: str, template_variables: dict, **data: Any) -> None:
def __init__(
self, to: list[EmailStr | str], subject: str, template: str, template_variables: dict, **data: Any
) -> None:
data['subtype'] = MessageType.html
data['recipients'] = to
data['template'] = template