From 1042072ad80997cfc3f5d2f5a205e3966b38bdac Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 31 Mar 2022 16:25:49 +0200 Subject: [PATCH] fsd --- files/routes/static.py | 4 ++-- files/routes/votes.py | 2 +- files/templates/comments.html | 4 ++-- files/templates/post_actions.html | 2 +- files/templates/post_actions_mobile.html | 2 +- snappy_Drama.txt | 7 ++++++- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 922cc8d47..7836e77a0 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -141,10 +141,10 @@ def cached_chart(days): if days > 31: file = "/weekly_chart.png" - day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(45)][1:] + day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(47)][1:] else: file = "/daily_chart.png" - day_cutoffs = [today_cutoff - 86400 * i for i in range(45)][1:] + day_cutoffs = [today_cutoff - 86400 * i for i in range(47)][1:] day_cutoffs.insert(0, calendar.timegm(now)) diff --git a/files/routes/votes.py b/files/routes/votes.py index 4cec5a046..d48659615 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -19,7 +19,7 @@ def admin_vote_info_get(v): else: abort(400) except: abort(400) - if thing.ghost and v.admin_level < 3: abort(403) + if thing.ghost and v.id != AEVANN_ID: abort(403) if not thing.author: print(thing.id, flush=True) diff --git a/files/templates/comments.html b/files/templates/comments.html index 6a3b78716..7cdcf6099 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -431,7 +431,7 @@ {% endif %} - {% if not c.ghost %}Votes{% endif %} + {% if not c.ghost and v.id != AEVANN_ID %}Votes{% endif %} Context @@ -629,7 +629,7 @@