From e6e5672a69e4192d2dc130a71f92888ac9ec4ece Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Thu, 2 May 2024 14:17:51 +0200 Subject: [PATCH] feat: remove format_date pipe --- templates/threads.html | 4 ++-- threads.py | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/templates/threads.html b/templates/threads.html index 490eb70..a87aff1 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -253,7 +253,7 @@
- {{ thread.created_at | time_ago }} · + {{ thread.created_at | time_ago }} · Anchor
@@ -325,7 +325,7 @@
- {{ descendant.created_at | time_ago }} · + {{ descendant.created_at | time_ago }} · Anchor
diff --git a/threads.py b/threads.py index e0116e1..33266dd 100755 --- a/threads.py +++ b/threads.py @@ -49,11 +49,6 @@ def time_ago(date): return str(weeks) + ' weeks ago' return date_obj.strftime('%b %d, %Y') -@threads.app_template_filter('format_date') -def format_date(date): - return date.replace('T', ' ').split('.')[0] - - @threads.route('/') def home(): statuses = fetch_statuses()