aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 87a0cec4..991e25b0 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -215,8 +215,7 @@ def inactives():
today = datetime.datetime.now()
inactives = []
for feed in user.feeds:
- last_post = sorted(feed.articles, key=lambda t: t.date,
-reverse=True)[0].date
+ last_post = feed.articles[0].date
elapsed = today - last_post
if elapsed > datetime.timedelta(days=nb_days):
inactives.append((feed, elapsed))
bgstack15