improve approximate duration of one month

what a silly-sounding commit message
This commit is contained in:
Connor Olding 2020-09-03 11:33:25 +02:00
parent 51df54be80
commit d0d29bd0d4

View File

@ -7,7 +7,7 @@ from time import time
CacheLine = namedtuple("CacheLine", ("time", "code"))
header = ["ip", "time", "code"]
one_month = 30 * 24 * 60 * 60 # in seconds
one_month = 365.25 / 12 * 24 * 60 * 60 # in seconds
encoding = "latin-1"
cache_filepath = "ipinfo_cache.csv"