kopia lustrzana https://github.com/piku/piku
Fix long-standing cron validation off-by-one
rodzic
b2ce37c5bd
commit
0d6d4093e8
2
piku.py
2
piku.py
|
@ -287,7 +287,7 @@ def parse_procfile(filename):
|
|||
matches = match(CRON_REGEXP, command).groups()
|
||||
if matches:
|
||||
for i in range(len(limits)):
|
||||
if int(matches[i].replace("*/", "").replace("*", "1")) > limits[i]:
|
||||
if int(matches[i+1].replace("*/", "").replace("*", "1")) > limits[i]:
|
||||
raise ValueError
|
||||
workers[kind] = command
|
||||
except Exception:
|
||||
|
|
Ładowanie…
Reference in New Issue