blocklist, fix #171 by covracer

This commit is contained in:
Martijn Voncken 2008-04-19 15:30:40 +00:00
parent 67f0b6a2c9
commit 8de21c82ae
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ class BlocklistImport:
list_timestamp = liststats.st_mtime list_timestamp = liststats.st_mtime
now_timestamp = time.time() now_timestamp = time.time()
days_update = self.config.get('load_after_days') days_update = self.config.get('load_after_days')
if days_update == None:
days_update = 0
# Seconds in a day = 86400 # Seconds in a day = 86400
# Check to see if todays timestamp is older than the list plus days in config # Check to see if todays timestamp is older than the list plus days in config