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:
2026-05-05 14:56:53 +02:00
parent 1e611d59f1
commit 007825acee
214 changed files with 15117 additions and 565 deletions
+5 -2
View File
@@ -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}")