Skip to content

Commit 10adc92

Browse files
committed
Merge branch 'main' of https://github.com/bitmakerla/PS-Helper into main
2 parents 0a18161 + 0c290bd commit 10adc92

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/ps_helper/extensions/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Place the extension in your Scrapy project and enable it in `settings.py`:
2323
```python
2424
EXTENSIONS = {
2525
'ps_helper.extensions.metrics_extension.MetricsExtension': 500,
26+
'ps_helper.extensions.slack_extension.SlackAlertExtension': 600,
2627
}
28+
29+
SLACK_WEBHOOK_URL = 'url_here'
2730
```
2831

2932
Optionally configure the number of timeline buckets:

src/ps_helper/scripts/generate_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _generate_retry_reasons_html(data):
327327
values=df_errors["Count"],
328328
marker=dict(
329329
colors=[
330-
"#FF5733", # Naranja rojo (original)
330+
"#FF5733", # Naranja rojo
331331
"#FF6B3D", # Naranja brillante
332332
"#FF8047", # Naranja medio
333333
"#FF9551", # Naranja claro
@@ -336,7 +336,7 @@ def _generate_retry_reasons_html(data):
336336
"#A8C560", # Lima
337337
"#7CB862", # Verde lima
338338
"#50AA64", # Verde medio
339-
"#00BF71" # Verde esmeralda (original)
339+
"#00BF71" # Verde esmeralda
340340
][
341341
: len(df_errors)
342342
]

0 commit comments

Comments
 (0)