self
This commit is contained in:
parent
c080c2b22e
commit
44c71d1d12
1 changed files with 4 additions and 4 deletions
|
|
@ -53,11 +53,11 @@ class Archive(SQLObject):
|
||||||
|
|
||||||
def findNew(self):
|
def findNew(self):
|
||||||
#only update archive if not modified for more than 2 hours
|
#only update archive if not modified for more than 2 hours
|
||||||
if archive.isOnline():
|
if self.isOnline():
|
||||||
if archive.sinceLastModification() > 60*60*2:
|
if self.sinceLastModification() > 60*60*2:
|
||||||
archive.importFiles()
|
self.importFiles()
|
||||||
else:
|
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:
|
else:
|
||||||
print "WARNING %s, is not online, check power and disk" % archive.basePath
|
print "WARNING %s, is not online, check power and disk" % archive.basePath
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue