From 857cdd1ffea301d241e6cc267f08694f96305cc7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 5 Apr 2024 11:08:26 +0200 Subject: [PATCH] remove now unnecessary func --- files/helpers/stats.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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