improvement to situation_long based on todays ethias race
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user