Skip to content

Commit

Permalink
feat: add banner_mode
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 committed Jan 12, 2024
1 parent 4b1f0c0 commit 93a45ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xcpcio_board_spider/type/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self,
balloon_color: typing.List[Color] = None,
logo: Image = None,
banner: Image = None,
banner_mode: str = None,
options: ContestOptions = None,
):
self.contest_name = contest_name
Expand Down Expand Up @@ -62,6 +63,11 @@ def __init__(self,
else:
self.banner = None

if banner_mode is not None:
self.banner_mode = banner_mode
else:
self.banner_mode = None

if options is not None:
self.options = options
else:
Expand Down Expand Up @@ -127,6 +133,9 @@ def get_dict(self):
if self.banner is not None:
obj["banner"] = self.banner.get_dict

if self.banner_mode is not None:
obj["banner_mode"] = self.banner_mode

obj["options"] = self.options.get_dict

return obj
Expand Down

0 comments on commit 93a45ec

Please sign in to comment.