Typo again

This commit is contained in:
Alban Bronisz 2021-02-14 18:09:34 +01:00
parent cab9498f2b
commit e5a1948f59
2 changed files with 4 additions and 5 deletions

View File

@ -55,7 +55,6 @@ def load_data(stats_fn: str):
def render(data: dict, web_render:bool=False): def render(data: dict, web_render:bool=False):
bar_chart = pygal.StackedBar(height=400, legend_box_size=5, x_label_rotation=25) bar_chart = pygal.StackedBar(height=400, legend_box_size=5, x_label_rotation=25)
labels = [d.strftime("%B %d %H:%M") for d in data["date"]] labels = [d.strftime("%B %d %H:%M") for d in data["date"]]
print(labels)
bar_chart.x_labels = labels bar_chart.x_labels = labels
for k in data: for k in data:
if k == "date": if k == "date":

View File

@ -15,7 +15,7 @@ if [[ $# -ne 1 ]] && [[ $# -ne 2 ]]; then
echo " - stats_file: path to stats file" echo " - stats_file: path to stats file"
echo "" echo ""
echo "Options:" echo "Options:"
echo " - w: do rende1r using web browser" echo " - w: do render using web browser"
exit 1 exit 1
fi fi