feat: change templates bitforce to elcsa
This commit is contained in:
11
src/infrastructure/mail/assets.py
Normal file
11
src/infrastructure/mail/assets.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import base64
|
||||
from pathlib import Path
|
||||
|
||||
_LOGO_PATH = Path(__file__).resolve().parent / 'templates' / 'static' / 'exa-logo.png'
|
||||
|
||||
|
||||
def get_exa_logo_data_uri() -> str | None:
|
||||
if not _LOGO_PATH.is_file():
|
||||
return None
|
||||
data = base64.b64encode(_LOGO_PATH.read_bytes()).decode('ascii')
|
||||
return f'data:image/png;base64,{data}'
|
||||
Reference in New Issue
Block a user