fix pycodestyle

This commit is contained in:
jonaswinkler 2021-06-13 12:18:21 +02:00
parent 1f707e86cc
commit ff370172b5

View File

@ -77,7 +77,7 @@ def make_criterias(rule):
maximum_age = date.today() - timedelta(days=rule.maximum_age)
criterias = {}
if rule.maximum_age > 0:
criterias["date_gte"] = maximum_age
criterias["date_gte"] = maximum_age
if rule.filter_from:
criterias["from_"] = rule.filter_from
if rule.filter_subject: