Commit ·
57def2c
1
Parent(s): 9597cdf
Telegram scan alerts: 'Blocked by' block in red font
Browse files
modules/telegram_alert.py
CHANGED
|
@@ -129,9 +129,9 @@ def format_scan_summary(scan_data: dict) -> str:
|
|
| 129 |
if float(top.get("rsi") or 0) >= _crit["rsi"]:
|
| 130 |
_fails.append("RSI " + str(top.get("rsi")) + " (must be below " + str(_crit["rsi"]) + ")")
|
| 131 |
if _fails:
|
| 132 |
-
header +=
|
| 133 |
for _f in _fails:
|
| 134 |
-
header +=
|
| 135 |
except Exception:
|
| 136 |
pass
|
| 137 |
|
|
|
|
| 129 |
if float(top.get("rsi") or 0) >= _crit["rsi"]:
|
| 130 |
_fails.append("RSI " + str(top.get("rsi")) + " (must be below " + str(_crit["rsi"]) + ")")
|
| 131 |
if _fails:
|
| 132 |
+
header += ('\n<b><font color="#f87171">Blocked by:</font></b>')
|
| 133 |
for _f in _fails:
|
| 134 |
+
header += ('\n • <font color="#f87171">' + _f + "</font>")
|
| 135 |
except Exception:
|
| 136 |
pass
|
| 137 |
|