Skip to content

Commit

Permalink
is_created_by bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushkar-Bhuse committed Aug 26, 2022
1 parent 34d57a0 commit ab97ae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forte/data/base_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,10 @@ def is_created_by(
if isinstance(components, str):
components = [components]

entry_tid = entry.tid if isinstance(entry, Entry) else entry

for c in components:
if entry in self._creation_records[c]:
if entry_tid in self._creation_records[c]:
break
else:
# The entry not created by any of these components.
Expand Down

0 comments on commit ab97ae9

Please sign in to comment.