summaryrefslogtreecommitdiff
path: root/portato/db/eix_sql.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-12 21:53:32 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-12 21:53:32 +0200
commit52c61821a1eca27c4406374174e8836593b68e52 (patch)
tree8fc3641c86d81ffb8921445a6214fb9b4929048f /portato/db/eix_sql.py
parent39f786c905e1e78c283a1d3939876b0e6b1f86c4 (diff)
downloadportato-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.py2
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)
class='insertions'>+29 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 2006-12-10Add caching infrastructureLars Hjemli9-28/+353