diff --git a/files/helpers/stats.py b/files/helpers/stats.py index c839777d2..0d68f3e6c 100644 --- a/files/helpers/stats.py +++ b/files/helpers/stats.py @@ -75,15 +75,12 @@ def chart(kind, site): posts_chart.set_xlabel("Posts", labelpad=10.0, size=30) comments_chart.set_xlabel("Comments", labelpad=10.0, size=30) - file = chart_path(kind, site) + file = f'/{site}_{kind}.png' plt.savefig(file, bbox_inches='tight') plt.clf() return file -def chart_path(kind, site): - return f'/{site}_{kind}.png' - def stats(): now = time.time() day = int(now) - 86400