mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing small bug in autocomplete for client apps when the feed doesn't exist.
This commit is contained in:
parent
926e9a2700
commit
c5eaad36e5
2 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def feed_autocomplete(request):
|
|||
'num_subscribers': feed.num_subscribers,
|
||||
} for feed in feeds if feed]
|
||||
else:
|
||||
feeds = [feed.canonical(full=True) for feed in feeds]
|
||||
feeds = [feed.canonical(full=True) for feed in feeds if feed]
|
||||
feeds = sorted(feeds, key=lambda f: -1 * f['num_subscribers'])
|
||||
|
||||
feed_ids = [f['id'] for f in feeds]
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue