From 8b3d6030b66778f0d9ee574cf9d87a3445e7da8f Mon Sep 17 00:00:00 2001 From: nleach999 Date: Tue, 7 May 2024 11:38:37 -0500 Subject: [PATCH] fix default schedule --- logic/__init__.py | 2 +- utils/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/__init__.py b/logic/__init__.py index 86a1f7d..b69b5a3 100644 --- a/logic/__init__.py +++ b/logic/__init__.py @@ -109,7 +109,7 @@ async def __get_untagged_project_schedule(self, bad_cb): # Check that repo is defined and primary branch is defined repo_cfg = await ProjectRepoConfig.from_loaded_json(self.__client, project) - if (await repo_cfg.repo_url) is not None and (await repo_cfg.primary_branch) is not None: + if (await repo_cfg.repo_url is not None) and (await repo_cfg.primary_branch is not None): # If the project matches a group, assign it the schedule for all matching groups. for gid in project['groups']: if len(by_gid.keys()) > 0: diff --git a/utils/__init__.py b/utils/__init__.py index 35e77c0..162ee81 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -153,7 +153,7 @@ def __init__(self, schedule, policy_dict): policy_strings = [f"^{x}$" for x in policy_dict.keys()] policy_strings.append("^hourly$|^daily$") self.__validator = re.compile("|".join(policy_strings)) - self.__schedule = schedule.lower() + self.__schedule = schedule.lower().strip("\"\'") self.__policies = policy_dict def is_valid(self):