diff --git a/python-versions-pct.png b/python-versions-pct.png index 5384d4f..951c741 100644 Binary files a/python-versions-pct.png and b/python-versions-pct.png differ diff --git a/python-versions.png b/python-versions.png index 5a8f189..3dd0627 100644 Binary files a/python-versions.png and b/python-versions.png differ diff --git a/python-versions.py b/python-versions.py index 0726871..efcd249 100644 --- a/python-versions.py +++ b/python-versions.py @@ -85,10 +85,10 @@ def fetch_main(): db = DB() today = date.today() for year_in_the_past in count(): - if year_in_the_past < 2017: + year = today.year - year_in_the_past + if year < 2017: # There's no data before 2017. return - year = today.year - year_in_the_past for month in reversed(range(1, 13)): start_date = date(year, month, 1) end_date = start_date.replace( @@ -171,6 +171,7 @@ def plot_pct(): versions.set_index(["python_version", "date"], inplace=True) to_plot = versions.pct.unstack(0, fill_value=0) to_plot.sort_values(by="python_version", axis=1, inplace=True, key=by_versions) + print(to_plot.tail(24)) for version in to_plot: if version in HIDE: to_plot["Other"] += to_plot[version] diff --git a/python-versions.sqlite b/python-versions.sqlite index 52fe8f9..e019e22 100644 Binary files a/python-versions.sqlite and b/python-versions.sqlite differ