Commit fd2ce0b6 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update controllers/harvest.py

parent c65f7da4
......@@ -19,8 +19,7 @@ from invenio_tools import (load_record,
RecordConf,
RecordThesis,
REG_INT)
from plugin_dbui import (get_id,
inline_alert,
from plugin_dbui import (inline_alert,
Selector,
to_formPanel,
UNDEF_ID)
......@@ -425,10 +424,7 @@ def run_all():
for fieldname in ("id_teams", "id_projects"):
if selector[fieldname]:
q = db.harvesters[fieldname] == selector[fieldname]
if query:
query = (query) & (q)
else:
query = q
query = (q if query is None else (query) & (q))
harvesters = db(query).select(db.harvesters.ALL)
if not len(harvesters):
......
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