html_start = \
'
SPARC Download Statistics
\
This month, you have had downloads of the following datasets:
\
\
\
\
Dataset Name | \
ID | \
Version | \
Origin | \
Downloads | \
'
html_end = '\
\
'
def create_html_template(datasets_download_info):
html_string = html_start
for dataset in datasets_download_info:
html_string += f' \
{dataset["name"]} | \
{dataset["datasetId"]} | \
{dataset["version"]} | \
{dataset["origin"]} | \
{dataset["downloads"]} | \
'
html_string += html_end
return html_string