feat(proxy): increase expiry time to 4 days after block

This commit is contained in:
Iain Learmonth 2023-02-26 15:20:08 +00:00
parent 24e464653b
commit dd37bf0ce6

View file

@ -69,7 +69,7 @@ class ProxyMetaAutomation(BaseAutomation):
def automate(self, full: bool = False) -> Tuple[bool, str]:
# Destroy expired proxies
cutoff = datetime.datetime.utcnow() - datetime.timedelta(days=3)
cutoff = datetime.datetime.utcnow() - datetime.timedelta(days=4)
proxies: List[Proxy] = Proxy.query.filter(
Proxy.destroyed.is_(None),
Proxy.deprecated < cutoff