Show some basic stats on the index page

This commit is contained in:
Aarni Koskela
2021-02-19 14:54:21 +02:00
parent e0de669eb7
commit 3631c273e9
2 changed files with 20 additions and 0 deletions

View File

@@ -3,6 +3,10 @@ import glob
import os
import jinja2
import numpy
import pandas
from data_ingest import read_data
def main():
@@ -11,6 +15,9 @@ def main():
)
data = {
"date": datetime.datetime.utcnow(),
"pd": pandas,
"np": numpy,
"df": read_data(),
}
for filename in glob.glob("template/*"):
out_filename = os.path.join("out", os.path.relpath(filename, "template"))