From 4b7f789875407bded6898b7f5df220254ad73e28 Mon Sep 17 00:00:00 2001 From: "Nicholas St. Germain" Date: Fri, 11 Jan 2019 23:35:13 -0600 Subject: [PATCH] change c_time to m_time based on their releases for mmdb --- varken/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varken/helpers.py b/varken/helpers.py index 938e6d5..93817be 100644 --- a/varken/helpers.py +++ b/varken/helpers.py @@ -36,11 +36,11 @@ class GeoIPHandler(object): today = date.today() try: - dbdate = date.fromtimestamp(stat(self.dbfile).st_ctime) + dbdate = date.fromtimestamp(stat(self.dbfile).st_mtime) except FileNotFoundError: self.logger.error("Could not find GeoLite2 DB as: %s", self.dbfile) self.download() - dbdate = date.fromtimestamp(stat(self.dbfile).st_ctime) + dbdate = date.fromtimestamp(stat(self.dbfile).st_mtime) first_wednesday_day = [week[2:3][0] for week in monthcalendar(today.year, today.month) if week[2:3][0] != 0][0] first_wednesday_date = date(today.year, today.month, first_wednesday_day)