Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_release_calendar():
return rc.get_calendar()
def must_run(self, date):
cal = rc.get_calendar()
for c in cal:
if date == c["merge"]:
return True
return False
def must_run(self, date):
for c in get_calendar():
# if freeze is the 2019-03-11, then the tool must run the day after
# until 2019-03-2018 (a week after)
freeze = c["soft freeze"]
if freeze <= date <= freeze + relativedelta(days=6):
return True
return False