docstrings

This commit is contained in:
crflynn
2018-09-06 22:06:09 -04:00
parent 06e583c458
commit 249d26a00d

View File

@@ -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)