Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import export updates #609

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions models/Box.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ def to_xml(self, parent):
box_elem = ET.SubElement(parent, "box")
box_elem.set("gamelevel", "%s" % str(self.game_level.number))
ET.SubElement(box_elem, "name").text = self.name
ET.SubElement(box_elem, "gamelevel").text = str(self.game_level.number)
ET.SubElement(box_elem, "operatingsystem").text = self._operating_system
ET.SubElement(box_elem, "description").text = self._description
ET.SubElement(box_elem, "capture_message").text = self.capture_message
Expand Down
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
Loading