Skip to content

Commit

Permalink
Add plain_answer
Browse files Browse the repository at this point in the history
- Import/export of the plain_answer
  • Loading branch information
bmartin5692 committed Jul 8, 2024
1 parent a142d14 commit 7404e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/Flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ def to_xml(self, parent):
ET.SubElement(flag_elem, "description").text = self.description
ET.SubElement(flag_elem, "capture_message").text = self.capture_message
ET.SubElement(flag_elem, "value").text = str(self.value)
ET.SubElement(flag_elem, "plain_answer").text = str(self._plain_answer)
ET.SubElement(flag_elem, "locked").text = str(self.locked)
if self.lock_id:
ET.SubElement(flag_elem, "depends_on").text = Flag.by_id(self.lock_id).name
Expand Down
1 change: 1 addition & 0 deletions setup/xmlsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def create_flags(parent, box):
flag.name = get_child_text(flag_elem, "name")
flag.token = get_child_text(flag_elem, "token")
flag.value = get_child_text(flag_elem, "value", 10)
flag._plain_answer = get_child_text(flag_elem, "plain_answer")
flag.case_sensitive = get_child_text(flag_elem, "case_sensitive", 0)
flag.description = get_child_text(flag_elem, "description")
flag.capture_message = get_child_text(flag_elem, "capture_message")
Expand Down

0 comments on commit 7404e46

Please sign in to comment.