Browse Source

py-i2phosts-maint: don't try to deactivate already deactivated hosts

pull/1/head
Hidden Z 14 years ago
parent
commit
f9f90d4af6
  1. 1
      py-i2phosts-maint

1
py-i2phosts-maint

@ -101,6 +101,7 @@ for host in all_hosts: @@ -101,6 +101,7 @@ for host in all_hosts:
# deactivate if expired
min_dl = datetime.timedelta(days=config['activate_min_delay'])
if host.expires < datetime.datetime.utcnow().date():
if host.activated == True:
log.info('deactivating %s, reason: expired', host.name)
host.activated = False
# if not expired and added more than X days ago and approved then activate

Loading…
Cancel
Save