diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-12 21:53:32 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-12 21:53:32 +0200 |
commit | 52c61821a1eca27c4406374174e8836593b68e52 (patch) | |
tree | 8fc3641c86d81ffb8921445a6214fb9b4929048f /portato/db | |
parent | 39f786c905e1e78c283a1d3939876b0e6b1f86c4 (diff) | |
download | portato-52c61821a1eca27c4406374174e8836593b68e52.tar.gz portato-52c61821a1eca27c4406374174e8836593b68e52.tar.bz2 portato-52c61821a1eca27c4406374174e8836593b68e52.zip |
Convert the stored mtime to float before using it
Diffstat (limited to '')
-rw-r--r-- | portato/db/eix_sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |