|
@@ -26,10 +26,10 @@ def send_email(subject, message_body, to_list, sender=SENDER, cc=CC):
|
|
|
|
|
|
def send_email_weekly_summary():
|
|
|
locations = Location.objects.all()
|
|
|
- # locations = Location.objects.filter(location_id='12541597562633926366')
|
|
|
+ # locations = Location.objects.filter(location_id='12541597562633926366')
|
|
|
for location in locations:
|
|
|
to_list = list(LocationManager.objects.filter(location_id=location.location_id).values_list('email', flat=True))
|
|
|
- subject = f"Weekly report for {location.care_name}."
|
|
|
+ subject = f"Weekly Review Report of Google & Facebook at {location.care_name}."
|
|
|
url = f'{host_url}/analytics/weekly-report/{location.location_id}'
|
|
|
message_body = requests.get(url).text
|
|
|
message_body += '<br><p>Regards,</p><p>SignatureCare Review Team</p>'
|