remove now unnecessary func

pull/226/head
Aevann 2024-04-05 11:08:26 +02:00
parent 5d2ca3d178
commit 857cdd1ffe
1 changed files with 1 additions and 4 deletions

View File

@ -75,15 +75,12 @@ def chart(kind, site):
posts_chart.set_xlabel("Posts", labelpad=10.0, size=30) posts_chart.set_xlabel("Posts", labelpad=10.0, size=30)
comments_chart.set_xlabel("Comments", 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.savefig(file, bbox_inches='tight')
plt.clf() plt.clf()
return file return file
def chart_path(kind, site):
return f'/{site}_{kind}.png'
def stats(): def stats():
now = time.time() now = time.time()
day = int(now) - 86400 day = int(now) - 86400