Change maxmind url to new format

This commit is contained in:
samwiseg0 2019-12-31 16:41:46 -05:00
parent 88f0f18d87
commit 3adc6b684e

View file

@ -77,9 +77,8 @@ class GeoIPHandler(object):
def download(self):
tar_dbfile = abspath(join(self.data_folder, 'GeoLite2-City.tar.gz'))
maxmind_url = ('https://download.maxmind.com/app/geoip_download?edition_id={db}&'
'suffix={suffix}&license_key={key}').format(db='GeoLite2-City', suffix='tar.gz',
key=self.maxmind_license_key)
maxmind_url = ('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City'
f'&suffix=tar.gz&license_key={self.maxmind_license_key}')
downloaded = False
retry_counter = 0