Skip to content

Commit

Permalink
Fixes an issue where syncing document terms was accessing the wrong a…
Browse files Browse the repository at this point in the history
…ttribute. (#1526)
  • Loading branch information
kevgliss authored Aug 4, 2021
1 parent c0f0545 commit 33aba84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/document/scheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def sync_document_terms(db_session: SessionLocal, project: Project):
terms = term_service.get_all(db_session=db_session, project_id=project.id).all()
log.debug(f"Fetched {len(terms)} terms from database.")

term_strings = [t.name.lower() for t in terms if t.discoverable]
term_strings = [t.text.lower() for t in terms if t.discoverable]
phrases = build_term_vocab(term_strings)
matcher = build_phrase_matcher("dispatch-term", phrases)

Expand Down

0 comments on commit 33aba84

Please sign in to comment.