Skip to content

Commit

Permalink
Fixing small issues with the weekly email
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenLederman committed Jun 19, 2016
1 parent e9f08b5 commit 336298f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/openbadge/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def send_weekly_email(group, week_num):
#return

#url = "http://127.0.0.1:8000/weekly_group_report/"+group.key+"/"+week_num
url = "http://" + settings.SITE_ID + "/"+group.key+"/"+week_num
url = "http://" + settings.SITE_ID + "/weekly_group_report/"+group.key+"/"+week_num
#settings.SITE_ID returns cynthia.media.mit.edu on my laptop
#hopefully, settings.SITE_ID on production server is openbadgeprod.media.mit.edu ...

Expand Down
1 change: 1 addition & 0 deletions src/openbadge/management/commands/send_weekly_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def handle(self, *args, **options):
groups = StudyGroup.objects.all()

for group in groups:
self.stdout.write("Sending emails to group {0}".format(group.key))
send_weekly_email(group, week_num)

self.stdout.write("Sent the emails successfully!")
Expand Down
2 changes: 1 addition & 1 deletion src/openbadge/templates/openbadge/report_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html lang="en">
<head>
{% if exist %}
<title>Meeting Summary for Study Group {{name}} - Week {{week_num}}</title>
<title>Meeting Summary for Study Group {{name}} - Week {{week_num + 2}}</title>
{% else %}
<title>No Meeting Summary Available</title>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/email/weekly_report_email.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<div style="font-size:2em;margin-bottom:20px;"><strong>Roundtable Weekly Summary for {{ group.name }} for Week {{ week_num }}</strong></div>
<div style="font-size:2em;margin-bottom:20px;"><strong>Roundtable Weekly Summary for {{ group.name }} for Week {{ week_num + 2 }}</strong></div>
<div class="graph">

It is already the beginning of Week 4 and we are excited by the
Expand Down

0 comments on commit 336298f

Please sign in to comment.