block/external: backwards comparison

This commit is contained in:
Iain Learmonth 2022-05-25 09:20:57 +01:00
parent 66af6e6550
commit dc0bfc8cb5

View file

@ -57,7 +57,7 @@ class BlockExternalAutomation(BaseAutomation):
if proxy.deprecated:
print("Proxy already marked blocked")
continue
if proxy.added < datetime.datetime.utcnow() - datetime.timedelta(hours=3):
if proxy.added > datetime.datetime.utcnow() - datetime.timedelta(hours=3):
activities.append(Activity(
activity_type="block_warning",
text=(