can now get the situation diagram from the race stats page

This commit is contained in:
cube
2026-05-30 19:46:32 +01:00
parent 452a2572fa
commit db3449fcea
3 changed files with 54 additions and 2 deletions

12
example2.py Normal file
View File

@@ -0,0 +1,12 @@
from pcslive import LiveStats
import time
stats = LiveStats()
if len(stats.races) > 0:
race = stats.races[0]
race.get_situation_long()
for x in race.situation_long:
print(x, race.situation_long[x])