dont take time before checking files

This commit is contained in:
j 2008-07-07 11:28:48 +02:00
parent 989211b170
commit fbb08dd770

View file

@ -71,7 +71,8 @@ class Archive(SQLObject):
return True return True
def sinceLastModification(self): def sinceLastModification(self):
return time.time() - max([os.stat(f).st_mtime for f in glob('%s*/*'% self.basePath)]) lastModification = max([os.stat(f).st_mtime for f in glob('%s*/*'% self.basePath)])
return time.time() - lastModification
def notifyFrontend(self, action, md5sum): def notifyFrontend(self, action, md5sum):
if self.baseUrlFrontend: if self.baseUrlFrontend: