mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding feed count to google reader import endpoint.
This commit is contained in:
parent
5cf90ea8d0
commit
a0f75e6396
1 changed files with 6 additions and 3 deletions
|
@ -190,7 +190,8 @@ def reader_callback(request):
|
|||
@json.json_view
|
||||
def import_from_google_reader(request):
|
||||
code = 0
|
||||
|
||||
feed_count = 0
|
||||
|
||||
if request.user.is_authenticated():
|
||||
reader_importer = GoogleReaderImporter(request.user)
|
||||
auto_active = bool(request.REQUEST.get('auto_active') or False)
|
||||
|
@ -203,8 +204,10 @@ def import_from_google_reader(request):
|
|||
code = 1
|
||||
if 'import_from_google_reader' in request.session:
|
||||
del request.session['import_from_google_reader']
|
||||
|
||||
return dict(code=code)
|
||||
|
||||
feed_count = UserSubscription.objects.filter(user=request.user).count()
|
||||
|
||||
return dict(code=code, feed_count=feed_count)
|
||||
|
||||
def import_signup(request):
|
||||
if request.method == "POST":
|
||||
|
|
Loading…
Add table
Reference in a new issue