We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2c8cf commit c41ebc4Copy full SHA for c41ebc4
util_scripts/send_notification_open_dialogue_event.py
@@ -12,9 +12,11 @@
12
13
### CODE STARTS HERE
14
15
-from tigaserver_app.models import *
+from tqdm import tqdm
16
import pandas as pd
17
18
+from tigaserver_app.models import *
19
+
20
titles = {
21
"en": "Inspire other users this November!",
22
"es": "Inspira a otros usuarios este Noviembre!",
@@ -75,7 +77,7 @@ def generate_email(language="en"):
75
77
).filter(last_report__year__gte=2023).values('pk','locale')
76
78
)
79
-for locale in df.locale.unique():
80
+for locale in tqdm(df.locale.unique()):
81
notification_content = NotificationContent.objects.create(
82
title_en=titles.get("en"),
83
body_html_en=generate_email(language="en"),
0 commit comments