Blank lines removed
This commit is contained in:
parent
3796b62d18
commit
2ac3ca584c
1 changed files with 0 additions and 2 deletions
|
@ -62,7 +62,6 @@ class GeoIPHandler(object):
|
|||
dbdate = date.fromtimestamp(stat(self.dbfile).st_mtime)
|
||||
db_next_update = date.fromtimestamp(stat(self.dbfile).st_mtime) + timedelta(days=60)
|
||||
|
||||
|
||||
if db_next_update < today:
|
||||
self.logger.info("Newer GeoLite2 DB available, Updating...")
|
||||
self.logger.debug("GeoLite2 DB date %s, DB updates after: %s, Today: %s",
|
||||
|
@ -82,7 +81,6 @@ class GeoIPHandler(object):
|
|||
self.logger.debug("GeoLite2 DB date %s, DB updates after: %s, Today: %s",
|
||||
dbdate, db_next_update, today)
|
||||
|
||||
|
||||
def download(self):
|
||||
tar_dbfile = abspath(join(self.data_folder, 'GeoLite2-City.tar.gz'))
|
||||
url = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'
|
||||
|
|
Loading…
Reference in a new issue