mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-11 04:21:20 +00:00
docstrings
This commit is contained in:
@@ -161,8 +161,9 @@ def package(package):
|
|||||||
user=g.user
|
user=g.user
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_download_data(records):
|
def get_download_data(records):
|
||||||
"""Get the download data for a package - model."""
|
"""Organize the data for the absolute plots."""
|
||||||
data = defaultdict(lambda: {"x": [], "y": []})
|
data = defaultdict(lambda: {"x": [], "y": []})
|
||||||
|
|
||||||
date_categories = []
|
date_categories = []
|
||||||
@@ -214,6 +215,7 @@ def get_download_data(records):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def get_proportion_data(records):
|
def get_proportion_data(records):
|
||||||
|
"""Organize the data for the fill plots."""
|
||||||
data = defaultdict(lambda: {"x": [], "y": [], "text": []})
|
data = defaultdict(lambda: {"x": [], "y": [], "text": []})
|
||||||
|
|
||||||
date_categories = defaultdict(lambda: 0)
|
date_categories = defaultdict(lambda: 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user