Skip to content

Commit

Permalink
#338 considering non copy text_opinion_id while performing conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jun 17, 2022
1 parent 6ecc408 commit f07a56f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arekit/common/text_opinions/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def try_convert(other, convert_func):
"""
assert(isinstance(other, TextOpinion))
assert(callable(convert_func))
return TextOpinion.__try_create_copy_core(other=other, convert_id_func=convert_func)
return TextOpinion.__try_create_copy_core(other=other,
convert_id_func=convert_func,
keep_text_opinion_id=False)

@staticmethod
def __try_create_copy_core(other, convert_id_func=lambda part_id: part_id, keep_text_opinion_id=True):
Expand Down

0 comments on commit f07a56f

Please sign in to comment.