File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1440,13 +1440,17 @@ def standings(
1440
1440
1441
1441
1442
1442
def standings_data (
1443
+
1443
1444
leagueId = "103,104" ,
1444
1445
division = "all" ,
1445
1446
include_wildcard = True ,
1446
1447
season = None ,
1447
1448
standingsTypes = None ,
1448
1449
date = None ,
1449
1450
):
1451
+ print ("getting standings data" )
1452
+ print ("division" )
1453
+ print (division )
1450
1454
"""Returns a dict of standings data for a given league/division and season."""
1451
1455
params = {"leagueId" : leagueId }
1452
1456
if date :
@@ -1469,17 +1473,22 @@ def standings_data(
1469
1473
}
1470
1474
)
1471
1475
1476
+ print (params )
1472
1477
r = get ("standings" , params )
1473
1478
1474
1479
divisions = {}
1475
1480
1476
1481
for y in r ["records" ]:
1482
+ print (y ["division" ]["id" ])
1477
1483
for x in (
1478
1484
x
1479
1485
for x in y ["teamRecords" ]
1480
1486
if division .lower () == "all"
1481
1487
or division .lower () == x ["team" ]["division" ]["abbreviation" ].lower ()
1488
+ or str (division ) == str (x ["team" ]["division" ]["id" ])
1489
+
1482
1490
):
1491
+ print (x )
1483
1492
if x ["team" ]["division" ]["id" ] not in divisions .keys ():
1484
1493
divisions .update (
1485
1494
{
You can’t perform that action at this time.
0 commit comments