fixing the data bug

This commit is contained in:
Hossein Shafagh 2020-03-14 20:41:03 -07:00
parent b28b4f9a28
commit 34d23503de
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ def get_all_pending_cleaning_not_in_use_certs(source, days_since_issuance):
return (
Certificate.query.filter(Certificate.sources.any(id=source.id))
.filter(not_(Certificate.endpoints.any()))
.filter(Certificate.date_created < not_in_use_window)
.filter(Certificate.date_created > not_in_use_window)
.all()
)