Skip to content

Commit

Permalink
fix(elan): put end_payload in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
spsither committed May 9, 2023
1 parent 9a2d92e commit adb9848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpecha/serializers/elan.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def apply_annotation(self, base_id, annotation, uuid2localid):
slot1=self.annotation_sequence[base_id] * 2 - 1,
slot2=self.annotation_sequence[base_id] * 2,
)
end_payload = """</ANNOTATION_VALUE>
end_payload = """ </ANNOTATION_VALUE>
</ALIGNABLE_ANNOTATION>
</ANNOTATION>"""
self.add_chars(base_id, annotation["span"]["start"], True, start_payload)
self.add_chars(base_id, annotation["span"]["end"], True, end_payload)
self.add_chars(base_id, annotation["span"]["end"], False, end_payload)
if base_id not in self.time_order:
self.time_order[
base_id
Expand Down

0 comments on commit adb9848

Please sign in to comment.