Bug hunt V7:
DB: - Aggressive je_klub=false flag for programs/treninzi/totals (>100K€ no klub_id) - 53 ne-klubovi flagged false (RSS Rijeka ukupni, Stručni rad, Potpora loptačkim, etc) Frontend (sport2.html): - Panel back button (← Natrag) + history stack - window._panelHistory + pushPanelState + panelBack functions - closePanel resets history
This commit is contained in:
@@ -88,11 +88,14 @@ def tg_send(msg: str):
|
||||
if not TG_TOKEN or not TG_CHAT:
|
||||
return
|
||||
try:
|
||||
requests.post(
|
||||
# Use bare requests (no shared session) with short timeout to avoid
|
||||
# hangs on flaky outbound paths.
|
||||
r = requests.post(
|
||||
f"https://api.telegram.org/bot{TG_TOKEN}/sendMessage",
|
||||
data={"chat_id": TG_CHAT, "text": msg, "parse_mode": "Markdown"},
|
||||
timeout=10,
|
||||
timeout=(5, 10),
|
||||
)
|
||||
log.info(f"telegram: {r.status_code}")
|
||||
except Exception as e:
|
||||
log.warning(f"telegram failed: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user