Skip to content

Commit

Permalink
Merge pull request #141 from ludmilamarian/legacy_fix_bibindex
Browse files Browse the repository at this point in the history
  BibIndex: fix computation of records to be indexed
  • Loading branch information
egabancho committed Mar 10, 2016
2 parents a87034a + 6369d52 commit be03922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/bibindex/lib/bibindex_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,10 @@ def _should_reindex_for_revision(index_name, revision_date):
res = run_sql("""SELECT bibrec.id,modification_date,''
FROM bibrec, hstRECORD
WHERE modification_date>%s
AND id_bibrec BETWEEN %s AND %s
AND bibrec.id=id_bibrec
AND (SELECT COUNT(*) FROM hstRECORD WHERE id_bibrec=bibrec.id)=1""", (min_last_updated,))
AND (SELECT COUNT(*) FROM hstRECORD WHERE id_bibrec=bibrec.id)=1""",
(recIDs_range[0], recIDs_range[1], min_last_updated,))
if res:
recIDs_info.extend(res)

Expand Down

0 comments on commit be03922

Please sign in to comment.