Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,11 +81,11 @@ co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#ffffff","#F0E442
|
|
81 |
|
82 |
|
83 |
try:
|
84 |
-
data_r = requests.get("https://pub-api-ro.fantasysports.yahoo.com/fantasy/v2/league/427.l.public;out=settings/players;position=ALL;start=0;count=3000;sort=
|
85 |
key_check = data_r['fantasy_content']['league']['players']
|
86 |
|
87 |
except KeyError:
|
88 |
-
data_r = requests.get("https://pub-api-ro.fantasysports.yahoo.com/fantasy/v2/league/427.l.public;out=settings/players;position=ALL;start=0;count=1151;sort=
|
89 |
print('key_checked')
|
90 |
|
91 |
total_list = []
|
|
|
81 |
|
82 |
|
83 |
try:
|
84 |
+
data_r = requests.get("https://pub-api-ro.fantasysports.yahoo.com/fantasy/v2/league/427.l.public;out=settings/players;position=ALL;start=0;count=3000;sort=average_pick;search=;out=percent_owned;out=auction_values,ranks;ranks=season;ranks_by_position=season;out=expert_ranks;expert_ranks.rank_type=projected_season_remaining/draft_analysis;cut_types=diamond;slices=last7days?format=json_f").json()
|
85 |
key_check = data_r['fantasy_content']['league']['players']
|
86 |
|
87 |
except KeyError:
|
88 |
+
data_r = requests.get("https://pub-api-ro.fantasysports.yahoo.com/fantasy/v2/league/427.l.public;out=settings/players;position=ALL;start=0;count=1151;sort=average_pick;search=;out=percent_owned;out=auction_values,ranks;ranks=season;ranks_by_position=season;out=expert_ranks;expert_ranks.rank_type=projected_season_remaining/draft_analysis;cut_types=diamond;slices=last7days?format=json_f").json()
|
89 |
print('key_checked')
|
90 |
|
91 |
total_list = []
|