Skip to content

Commit

Permalink
fix default schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
nleach999 committed May 7, 2024
1 parent b65e3b3 commit 8b3d603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8b3d603

Please sign in to comment.