Fix GeoLite2 update log message to correct number of days from setting

This commit is contained in:
JonnyWong16 2020-01-04 11:50:48 -08:00
parent badbfdc4c1
commit e321c5b197

View file

@ -591,7 +591,8 @@ def update_geoip_db():
now = int(time.time())
if now - plexpy.CONFIG.GEOIP_DB_INSTALLED >= plexpy.CONFIG.GEOIP_DB_UPDATE_DAYS * 24 * 60 * 60:
return install_geoip_db(update=True)
logger.info(u"Tautulli Helpers :: GeoLite2 database already updated within the last 30 days.")
logger.info(u"Tautulli Helpers :: GeoLite2 database already updated within the last %s days."
% plexpy.CONFIG.GEOIP_DB_UPDATE_DAYS)
def install_geoip_db(update=False):