Show a publication's articles when showing it with its parent publisher.

master
Pacman Ghost 4 years ago
parent e783d17d95
commit 77ee30c8cb
  1. 2
      asl_articles/search.py

@ -117,7 +117,7 @@ def search_publisher( publ_id ):
results = [ get_publisher_vals( publ, True ) ]
pubs = sorted( publ.publications, key=get_publication_sort_key, reverse=True )
for pub in pubs:
results.append( get_publication_vals( pub, False, True ) )
results.append( get_publication_vals( pub, True, True ) )
return jsonify( results )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Loading…
Cancel
Save