From e5ec27ccfd2d4497b1f89cd3e8caefadef0d1992 Mon Sep 17 00:00:00 2001 From: krcb197 <34693973+krcb197@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:14:46 +0000 Subject: [PATCH 1/2] Add flags for events live/draft and in test_mode closes #10 --- src/pytito/__about__.py | 2 +- src/pytito/admin/event.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/pytito/__about__.py b/src/pytito/__about__.py index 666444b..f25606c 100644 --- a/src/pytito/__about__.py +++ b/src/pytito/__about__.py @@ -17,4 +17,4 @@ Variables that describes the Package """ -__version__ = "0.0.8" +__version__ = "0.0.9" diff --git a/src/pytito/admin/event.py b/src/pytito/admin/event.py index ad91c5c..ba7a449 100644 --- a/src/pytito/admin/event.py +++ b/src/pytito/admin/event.py @@ -129,3 +129,18 @@ def activities(self) -> list[Activity]: retrieve all the activities for the event """ return self.__activity_getter() + + @property + def live(self) -> bool: + """ + Whether the event is live (or draft) + """ + return self._json_content['live'] + + @property + def test_mode(self) -> bool: + """ + Whether the event is in test mode + """ + return self._json_content['test_mode'] + From f08706fb57db158ac798578c02bf9957e8c8fba1 Mon Sep 17 00:00:00 2001 From: krcb197 <34693973+krcb197@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:16:19 +0000 Subject: [PATCH 2/2] clean up new lines --- src/pytito/admin/event.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pytito/admin/event.py b/src/pytito/admin/event.py index ba7a449..0d91378 100644 --- a/src/pytito/admin/event.py +++ b/src/pytito/admin/event.py @@ -143,4 +143,3 @@ def test_mode(self) -> bool: Whether the event is in test mode """ return self._json_content['test_mode'] -