Explorar o código

fixed typo in email subjects

Mohidul Islam %!s(int64=4) %!d(string=hai) anos
pai
achega
8efcc47d1e
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 2 2
      analytics/background_job.py
  2. 1 1
      facebook_app/analytics.py
  3. 1 1
      review/background_job.py

+ 2 - 2
analytics/background_job.py

@@ -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>'

+ 1 - 1
facebook_app/analytics.py

@@ -29,7 +29,7 @@ def send_email_bad_reviews():
             # Add location maintainer email if it has an email
             to = list(LocationManager.objects.filter(location_id=location.location_id).values_list('email', flat=True))
 
-            subject = f"A negative Facebook review has been post in {location.care_name}."
+            subject = f"A negative Facebook review has been posted in {location.care_name}."
             message = '<p>Hi there, </p><p>'
             if total_reviews > 1:
                 tt = f'{total_reviews} negative Facebook reviews have'

+ 1 - 1
review/background_job.py

@@ -66,7 +66,7 @@ def send_email_bad_reviews():
         if total_reviews > 0:
             to = list(LocationManager.objects.filter(location_id=location.location_id).values_list('email', flat=True))
 
-            subject = f"A negative Google review has been post in {location.care_name}."
+            subject = f"A negative Google review has been posted in {location.care_name}."
             message = '<p>Hi there, </p><p>'
             if total_reviews > 1:
                 tt = f'{total_reviews} negative Google reviews have'