From 52c61821a1eca27c4406374174e8836593b68e52 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 12 Apr 2010 21:53:32 +0200 Subject: Convert the stored mtime to float before using it --- portato/db/eix_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/db/eix_sql.py') diff --git a/portato/db/eix_sql.py b/portato/db/eix_sql.py index 75bcb1e..758f42c 100644 --- a/portato/db/eix_sql.py +++ b/portato/db/eix_sql.py @@ -46,7 +46,7 @@ class EixSQLDatabase (SQLDatabase): def updated (self): mtime = os.stat(self.cache).st_mtime - old = self.session.get("mtime", 0) + old = float(self.session.get("mtime", 0)) self.session["mtime"] = str(mtime) -- cgit v1.2.3-70-g09d2