aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier/dispatchers.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2018-01-09 10:12:20 -0500
committerSawyer Bergeron <sbergeron@iol.unh.edu>2018-01-09 18:19:21 +0000
commitad4a2ec7ef6c2f8e39a53100772870c2f1e82518 (patch)
tree84268c7180d023a7cf15c7738c14ee53c33a3632 /src/notifier/dispatchers.py
parentffc10727531acbb52f87c52f948e0158a18c65c9 (diff)
Fixes for Recent Merge
Jira: None In a recent large merge, some code was lost in translation. This commit fixes a missing line in requirements.txt and removes a couple lines in dispatchers.py that lost relevance. Change-Id: I5ddf67fc1da6df40f84d60668cd59e6a1975912d Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/notifier/dispatchers.py')
-rw-r--r--src/notifier/dispatchers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/notifier/dispatchers.py b/src/notifier/dispatchers.py
index 64be2a5..c35fe2b 100644
--- a/src/notifier/dispatchers.py
+++ b/src/notifier/dispatchers.py
@@ -26,9 +26,8 @@ class DispatchHandler():
def email(instance):
if instance.msg_sent != 'no dispatcher by given name exists: sending by email':
instance.msg_sent = 'by email'
- send_mail(instance.title,instance.content +
- '\n\n This message pertains to the following resource: ' +
- instance.resource.name,instance.sender,[instance.user.email_addr], fail_silently=False)
+ send_mail(instance.title,instance.content,
+ instance.sender,[instance.user.email_addr], fail_silently=False)
def webnotification(instance):
- instance.msg_sent='by web notification'
+ instance.msg_sent='by web notification' \ No newline at end of file