fix(archive): skip categories with zero or unset days config
This commit is contained in:
@@ -69,6 +69,9 @@ def run(
|
|||||||
continue
|
continue
|
||||||
if category and cat.config.name not in category:
|
if category and cat.config.name not in category:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if cat.config.days == 0 or cat.config.days is None:
|
||||||
|
continue
|
||||||
|
|
||||||
limit_days = cat.config.days if cat.config.days is not None else older_than
|
limit_days = cat.config.days if cat.config.days is not None else older_than
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user