Compare commits
2 Commits
6c7d169ba7
...
72647fd344
| Author | SHA1 | Date | |
|---|---|---|---|
| 72647fd344 | |||
| 5d5d71af79 |
@@ -2983,6 +2983,9 @@ async def regular_standings():
|
|||||||
|
|
||||||
df["plus_minus"] = tg_plus - tg_minus
|
df["plus_minus"] = tg_plus - tg_minus
|
||||||
|
|
||||||
|
# Превращаем NaN в None, который корректно отдаётся как JSON null.
|
||||||
|
df = df.astype(object).where(pd.notna(df), None)
|
||||||
|
|
||||||
standings_payload = df.to_dict(orient="records")
|
standings_payload = df.to_dict(orient="records")
|
||||||
return maybe_clear_for_vmix(standings_payload)
|
return maybe_clear_for_vmix(standings_payload)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user