Skip to content

Commit

Permalink
Improve msg
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Oct 5, 2024
1 parent a8f38ea commit d7f7993
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stats/management/commands/dailyaccountstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.urls import reverse
from django.utils import timezone
from django_rich.management import RichCommand

Expand Down Expand Up @@ -186,13 +187,13 @@ def send_email_report(self):
ending_conferences = Conference.objects.filter(end_date=todays_date.date())
todays_conferences_msg = "\n".join(
[
f"{conference.name} {conference.website}, with num posts: {conference.posts.count()} starting today!"
f"{conference.name} https://fedidevs.com{reverse("conference", kwargs={"conference_slug":conference.slug})}, with {conference.posts.count()} posts is starting today!"
for conference in todays_conferences
]
)
ending_conferences_msg = "\n".join(
[
f"{conference.name} {conference.website}, with num posts: {conference.posts.count()} ending today!"
f"{conference.name} https://fedidevs.com{reverse("conference", kwargs={"conference_slug":conference.slug})}, with {conference.posts.count()} posts is ending today!"
for conference in ending_conferences
]
)
Expand Down

0 comments on commit d7f7993

Please sign in to comment.