This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move comment to the bottom, handle newlines and set max characters
- Loading branch information
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,12 @@ def create_mail(msg, body): | |
text += f'Antall kilometer: {body.get("distance", "")}\n' | ||
text += f'Reisefølge: {body.get("team", "")}\n' | ||
text += f'Antall reisende: {body.get("numberOfTravelers", "")}\n' | ||
text += f'Kommentar: {body.get("comment", "")}\n' | ||
text += f'Kontonummer: {body.get("accountNumber", "")}\n' | ||
text += f'Beløp: {body.get("amount", "")}\n' | ||
text += f'(Autogenerert) Maks HS støtte: {body.get("maxRefund", "")}\n' | ||
text += f'Kommentar: {body.get("comment", "")}\n' | ||
text += f'\n' | ||
text += f"Reiseregning er generert og vedlagt. Ved spørsmål ta kontakt med [email protected]!" | ||
text += f"Reiseregning er generert og vedlagt. Ved spørsmål, ta kontakt med [email protected]!" | ||
|
||
msg.attach(MIMEText(text)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters