From 44c71d1d12a932d72641d3464b4d8e735640f93d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 13 Jul 2008 14:06:09 +0200 Subject: [PATCH] self --- oxdbarchive/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index ab97dad..8dff2a7 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -53,11 +53,11 @@ class Archive(SQLObject): def findNew(self): #only update archive if not modified for more than 2 hours - if archive.isOnline(): - if archive.sinceLastModification() > 60*60*2: - archive.importFiles() + if self.isOnline(): + if self.sinceLastModification() > 60*60*2: + self.importFiles() else: - print "ignoring %s, was changed withing last 2 hours" % archive.basePath + print "ignoring %s, was changed less than 2 hours ago" % archive.basePath else: print "WARNING %s, is not online, check power and disk" % archive.basePath