Change domain update task to not log if no changes

This commit is contained in:
Zeva Rose 2022-09-09 22:37:29 -06:00
parent 76f4fccc33
commit 552073cd71

View file

@ -13,9 +13,9 @@ class TaskMixin:
response.raise_for_status()
data = await response.json()
self.logger.debug(f"Found {len(data)} changes to phishing domains")
if len(data) == 0:
return
self.logger.debug(f"Found {len(data)} changes to phishing domains")
add = 0
sub = 0