From a64de479e6d294b9221a33782acd7265ba8d0564 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 26 Oct 2020 14:46:45 +0100 Subject: [PATCH] added parameter I/O for Service/Project in surveylink --- input/management/commands/sendmails.py | 2 +- input/settings.py | 2 +- input/templates/input/survey_mail.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/input/management/commands/sendmails.py b/input/management/commands/sendmails.py index 229e65d..3dfa485 100644 --- a/input/management/commands/sendmails.py +++ b/input/management/commands/sendmails.py @@ -78,7 +78,7 @@ class Command(BaseCommand): realname=item.realname) item.survey_mail_send = True item.save() - self.stdout.write(self.style.SUCCESS(f'surveymails for object type {type} send')) + self.stdout.write(self.style.SUCCESS(f'surveymails for object type {type} sent')) def surveymails_to_lib(self): diff --git a/input/settings.py b/input/settings.py index 5da0620..c53b033 100644 --- a/input/settings.py +++ b/input/settings.py @@ -3,7 +3,7 @@ IF_EMAIL = 'if-test@wikimedia.de' # prefix for urls URLPREFIX = 'http://127.0.0.1:8000' -SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?I=1&' +SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?' # some links DATAPROTECTION = "https://www.wikimedia.de/datenschutz/" diff --git a/input/templates/input/survey_mail.txt b/input/templates/input/survey_mail.txt index e274b17..c2c29d4 100644 --- a/input/templates/input/survey_mail.txt +++ b/input/templates/input/survey_mail.txt @@ -32,7 +32,7 @@ Förderprogramme im Sinne der Communitys weiter zu verbessern. Wir freuen uns, wenn du dir kurz die Zeit dafür nehmen würdest. Die Umfrage mit weiteren Informationen findest du unter dem folgenden Link: -{{SURVEYPREFIX}}{{pid}}=1 +{{SURVEYPREFIX}}{% if type == 'PRO' %}O{% else %}I{% endif %}=1&{{pid}}=1 Da dies eine automatisch erzeugte Nachricht ist, wende dich bei Rückfragen zur Umfrage bitte an community@wikimedia.de