Automatische Meldung an UNB

Fixes #26
This commit is contained in:
Gunther Weissenbaeck 2024-02-06 00:13:14 +01:00
parent 15a63e0c75
commit acca5da39d
12 changed files with 170 additions and 1 deletions

25
app/sendemail/message.py Normal file
View file

@ -0,0 +1,25 @@
# the message body for the email should have placeholders for the bird name, the date found and the diagnosis
def messagebody(
date,
bird,
place,
diagnosis,
) -> str:
text = f"""
Guten Tag,
am {date} wurde in der NABU Wildvogelhilfe ein Vogel der Art {bird} aufgenomen.
Der Fundort laut Finder*in war: {place}
Die Diagnose bei Fund lautet: {diagnosis}
Mit freundlichen Grüßen
NABU Wildvogelhilfe Jena
Untergliederung des
NABU Kreisverband Jena e.V.
Schillergässchen 5
07745 Jena
"""
return text