make sure to only run HIBP check on enabled alias

This commit is contained in:
Son NK 2021-05-19 16:12:58 +02:00
parent 3422bd9aee
commit 14bc4f8872
1 changed files with 1 additions and 0 deletions

View File

@ -839,6 +839,7 @@ async def check_hibp():
Alias.query.filter(
or_(Alias.hibp_last_check.is_(None), Alias.hibp_last_check < max_date)
)
.filter(Alias.enabled)
.order_by(Alias.id)
.all()
):