teams-alerter 0.2.9__tar.gz → 0.2.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/PKG-INFO +1 -1
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/pyproject.toml +1 -1
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter/utils.py +9 -3
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter.egg-info/PKG-INFO +1 -1
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/README.md +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/setup.cfg +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter/__init__.py +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter/core.py +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter.egg-info/SOURCES.txt +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter.egg-info/dependency_links.txt +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter.egg-info/requires.txt +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/teams_alerter.egg-info/top_level.txt +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/tests/__init__.py +0 -0
- {teams_alerter-0.2.9 → teams_alerter-0.2.11}/tests/test_core.py +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "teams-alerter"
|
7
|
-
version = "0.2.
|
7
|
+
version = "0.2.11"
|
8
8
|
description = "Module pour envoyer des alertes Teams via Pub/Sub"
|
9
9
|
authors = [{ name = "Toki", email = "t.bakotondrabe-ext@paris-turf.com" }]
|
10
10
|
readme = "README.md"
|
@@ -66,7 +66,11 @@ def format_email_template(email_object, email_messages, table_data, app_name):
|
|
66
66
|
</td>
|
67
67
|
</tr>
|
68
68
|
|
69
|
-
|
69
|
+
<tr>
|
70
|
+
<td style="padding:0 16px 24px 16px;">
|
71
|
+
{build_snippet_html_part(table_data, app_name) if table_data else ""}
|
72
|
+
</td>
|
73
|
+
</tr>
|
70
74
|
|
71
75
|
<tr>
|
72
76
|
<td style="padding:0 24px 16px 24px; font-family:Segoe UI, Arial, sans-serif; font-size:14px; line-height:20px; color:#4b5563;">
|
@@ -186,7 +190,7 @@ def build_snippet_html_part(table_data: list, app_name: str):
|
|
186
190
|
<div style="background:#0b1021;color:#e6e6e6;padding:12px;border-radius:4px;font-family:monospace;font-size:13px;line-height:1.5;white-space:pre;">
|
187
191
|
"""
|
188
192
|
for row in table_data[1:]:
|
189
|
-
content += f"SELECT * FROM ps_force_relaunch_stat_cheval_apres_course('{row[0]}')
|
193
|
+
content += f"<span> SELECT * FROM ps_force_relaunch_stat_cheval_apres_course('{row[0]}'); </span> <br/>"
|
190
194
|
content += "</div>"
|
191
195
|
|
192
196
|
elif app_name == "health_check_check_partants_data":
|
@@ -195,7 +199,9 @@ def build_snippet_html_part(table_data: list, app_name: str):
|
|
195
199
|
<div style="background:#0b1021;color:#e6e6e6;padding:12px;border-radius:4px;font-family:monospace;font-size:13px;line-height:1.5;white-space:pre;">
|
196
200
|
"""
|
197
201
|
for row in table_data:
|
198
|
-
content +=
|
202
|
+
content += (
|
203
|
+
f"<span> SELECT * FROM ps_force_relaunch_transaction('tb_course','{row[0]}', false); </span> <br/>"
|
204
|
+
)
|
199
205
|
content += "</div>"
|
200
206
|
|
201
207
|
return content
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|