Skip to content

Commit c35ee52

Browse files
committed
Set challenge attribution
1 parent d8e08da commit c35ee52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ctfcli/core/challenge.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def str_presenter(dumper, data):
4343
class Challenge(dict):
4444
key_order = [
4545
# fmt: off
46-
"name", "author", "category", "description", "value",
46+
"name", "author", "category", "description", "attribution", "value",
4747
"type", "extra", "image", "protocol", "host",
4848
"connection_info", "healthcheck", "attempts", "flags",
4949
"files", "topics", "tags", "files", "hints",
@@ -262,6 +262,7 @@ def _get_initial_challenge_payload(self, ignore: Tuple[str] = ()) -> Dict:
262262
"name": self["name"],
263263
"category": self.get("category", ""),
264264
"description": self.get("description", ""),
265+
"attribution": self.get("attribution", ""),
265266
"type": self.get("type", "standard"),
266267
# Hide the challenge for the duration of the sync / creation
267268
"state": "hidden",

0 commit comments

Comments
 (0)