Skip to content

Commit c41ebc4

Browse files
committed
Added tqdm
1 parent ce2c8cf commit c41ebc4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

util_scripts/send_notification_open_dialogue_event.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212

1313
### CODE STARTS HERE
1414

15-
from tigaserver_app.models import *
15+
from tqdm import tqdm
1616
import pandas as pd
1717

18+
from tigaserver_app.models import *
19+
1820
titles = {
1921
"en": "Inspire other users this November!",
2022
"es": "Inspira a otros usuarios este Noviembre!",
@@ -75,7 +77,7 @@ def generate_email(language="en"):
7577
).filter(last_report__year__gte=2023).values('pk','locale')
7678
)
7779

78-
for locale in df.locale.unique():
80+
for locale in tqdm(df.locale.unique()):
7981
notification_content = NotificationContent.objects.create(
8082
title_en=titles.get("en"),
8183
body_html_en=generate_email(language="en"),

0 commit comments

Comments
 (0)