Commit 6bc3e8e5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Bug fixed handling individual author in list

parent 5de2a7cf
......@@ -23,7 +23,7 @@ def index():
# the selector fields year_start, year_end, id_lists are excluded
# from the selector query.
selector = Selector(virtdb.list_selector,
exclude_fields=('year_start', 'year_end', 'id_lists'),
exclude_fields=('author', 'year_start', 'year_end', 'id_lists'),
# protection
......@@ -64,6 +64,10 @@ def get_sections(db, selector, list):
q_end = db.publications.year <= selector.year_end
query = (query) & ((q_start) & (q_end))
q_author = db.publications.authors.contains(
query = (query) & (q_author)
# add to the query the directive coming from the section itself
# the publication category and dedicated conditions
if section.category_codes:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment