From 0e8b4456ce9bf2c449a4502a4531da690171914a Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 21 Aug 2020 10:50:03 +0200 Subject: [PATCH] fix: [UI tags] fix add tags template --- bin/packages/Tag.py | 6 +- .../showpaste/templates/show_saved_paste.html | 86 ++++++++++--------- 2 files changed, 48 insertions(+), 44 deletions(-) diff --git a/bin/packages/Tag.py b/bin/packages/Tag.py index f609be0b..ee49c250 100755 --- a/bin/packages/Tag.py +++ b/bin/packages/Tag.py @@ -271,8 +271,10 @@ def update_tag_last_seen(tag, tag_first_seen, tag_last_seen): if r_serv_tags.scard('{}:{}'.format(tag, tag_last_seen)) > 0: r_serv_tags.hset('tag_metadata:{}'.format(tag), 'last_seen', tag_last_seen) else: - tag_last_seen = Date.date_substract_day(tag_last_seen) - update_tag_last_seen(tag, tag_first_seen, tag_last_seen) + # # TODO: # FIXME: + #tag_last_seen = Date.date_substract_day(str(tag_last_seen)) + #update_tag_last_seen(tag, tag_first_seen, tag_last_seen) + pass def update_tag_metadata(tag, tag_date, object_type=None, add_tag=True): ''' diff --git a/var/www/modules/showpaste/templates/show_saved_paste.html b/var/www/modules/showpaste/templates/show_saved_paste.html index e7993694..dc29ad7f 100644 --- a/var/www/modules/showpaste/templates/show_saved_paste.html +++ b/var/www/modules/showpaste/templates/show_saved_paste.html @@ -55,8 +55,8 @@