Skip to content

Commit

Permalink
NiFi: typo anon doc script fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Dec 6, 2023
1 parent 99d281a commit e26944c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nifi/user-scripts/anonymise_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def special_deid(cat, text, record):
text_field = record[text_field_name]
_anon_text = ""
if len(text_field) > char_limit:
sections = int(len(text_field_name) / char_limit)
sections = int(len(text_field) / char_limit)

for i in range(sections):
_tmp_text = text_field[i * char_limit: (i + 1) * char_limit]
_tmp_text = text_field[i * char_limit:(i + 1) * char_limit]
_anon_text += deid_text(cat, _tmp_text)
else:
_anon_text = deid_text(cat, text_field)
Expand Down

0 comments on commit e26944c

Please sign in to comment.