improvement to situation_long based on todays ethias race

This commit is contained in:
cube
2026-06-02 15:04:42 +01:00
parent 9c27da9265
commit c65fbbb476
2 changed files with 59 additions and 32 deletions

View File

@@ -1,14 +1,17 @@
from pcslive import LiveStats
import time
stats = LiveStats()
# if there are live races...
if len(stats.races) > 0:
race = stats.races[0]
from pcslive import LiveStats
race.get_situation_long()
stats = LiveStats()
race = stats.find_race("ethias")
race.get_situation_long()
# whats the situation? :)
for x in race.situation_long:
print(x, race.situation_long[x])
if race.situation_long:
for group in race.situation_long:
for item in group:
print(item)
print("================")
else:
print("No situation data")