mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fix for ordering found feed by address, but in order.
This commit is contained in:
parent
51756c7bc7
commit
6797b92e66
1 changed files with 2 additions and 2 deletions
|
@ -467,11 +467,11 @@ def add_url(request):
|
|||
if url:
|
||||
url = urlnorm.normalize(url)
|
||||
# See if it exists as a duplicate first
|
||||
duplicate_feed = DuplicateFeed.objects.filter(duplicate_address=url)
|
||||
duplicate_feed = DuplicateFeed.objects.filter(duplicate_address=url).order_by('pk')
|
||||
if duplicate_feed:
|
||||
feed = [duplicate_feed[0].feed]
|
||||
else:
|
||||
feed = Feed.objects.filter(feed_address=url)
|
||||
feed = Feed.objects.filter(feed_address=url).order_by('pk')
|
||||
|
||||
if feed:
|
||||
feed = feed[0]
|
||||
|
|
Loading…
Add table
Reference in a new issue