mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Reversing order for fetch histories.
This commit is contained in:
parent
6011e4f2da
commit
abbc05660f
1 changed files with 2 additions and 2 deletions
|
@ -1791,8 +1791,8 @@ class MFetchHistory(mongo.Document):
|
|||
elif fetch_type == 'push':
|
||||
history = fetch_history.push_history or []
|
||||
|
||||
history.append((date, code, message))
|
||||
history = history[-5:]
|
||||
history.insert(0, (date, code, message))
|
||||
history = history[:5]
|
||||
|
||||
if fetch_type == 'feed':
|
||||
fetch_history.feed_fetch_history = history
|
||||
|
|
Loading…
Add table
Reference in a new issue