From ad6a7af9d4354593c6defacd3f57a88d521d0c76 Mon Sep 17 00:00:00 2001 From: Daniel Daphron Kaczmarek Date: Mon, 22 Aug 2016 18:33:54 -0500 Subject: [PATCH] Fixed bug displaying the time between posts in feed where time was being incorrectly converted into hours --- rsstory/index.pt | 24 ++++++++++++------------ rsstory/views.py | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/rsstory/index.pt b/rsstory/index.pt index d5bde07..1588f31 100644 --- a/rsstory/index.pt +++ b/rsstory/index.pt @@ -1,16 +1,16 @@ - + @@ -75,8 +75,8 @@ -
-
WARNING: If you create a feed while not logged in you will NOT be able to manage it later!
+
+
WARNING: If you create a feed while not logged in you will NOT be able to manage it later!
diff --git a/rsstory/views.py b/rsstory/views.py index fb9b3e1..a63a85d 100644 --- a/rsstory/views.py +++ b/rsstory/views.py @@ -145,7 +145,7 @@ def my_feeds(request): titles.append(f.name) archive_urls.append(f.archive_url) time_created.append(datetime.datetime.fromtimestamp(f.time_created).strftime("%Y-%m-%d %H:%M:%S")) - time_between_posts.append(f.time_between_posts // (60 * 24)) # display in hours + time_between_posts.append(f.time_between_posts // (60 * 60)) # display in hours urls.append("/static/feeds/" + f.id + ".xml") preview_feeds.append("/static/previews/preview" + f.id + ".txt") ids.append(f.id)