Module functions.tools.panel_email

Functions

def load_and_render_panel_email(invitation_reason: str, end_of_study: str, study_code: str, length_min: float, points: Union[float, int] = 'auto', template_html: str = 'Vorlage_Mail_EinladungUmfrage_dt.html', output_file_path: str = 'Vorlage_Mail_EinladungUmfrage_dt.html', input_file_path: str = './templates/polittrends_invitation_templates/')

creates a panel invitation email by adding the invitationreason, the studynr and the length of the study to the panel templates, Points and CHF values are calculated from the length of the study, other languages can be chosen y using another template

Args

invitation_reason : str
Reason for Invitation
end_of_study : str
End of Study, as a string but should be a date (eg. 16. November 2023)
study_code : str
Code from Manageframes (eg: 999923528)
length_min : float
length of the study in minutes
points : Union[float, int]
points for the study, if 'auto' points are calculated from length_min
template_html : str
template file name
output_file_path : str
file name to be saved
input_file_path : str
folder for templates