git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to db model. now uses automatic history on updates: acts_as_versioned()
[monitor.git]
/
monitor
/
common.py
diff --git
a/monitor/common.py
b/monitor/common.py
index
6f88051
..
0f6dd40
100644
(file)
--- a/
monitor/common.py
+++ b/
monitor/common.py
@@
-224,17
+224,17
@@
def email_exception(content=None):
def changed_lessthan(last_changed, days):
if datetime.now() - last_changed <= timedelta(days):
def changed_lessthan(last_changed, days):
if datetime.now() - last_changed <= timedelta(days):
- print "last changed less than %s" % timedelta(days)
+
#
print "last changed less than %s" % timedelta(days)
return True
else:
return True
else:
- print "last changed more than %s" % timedelta(days)
+
#
print "last changed more than %s" % timedelta(days)
return False
def changed_greaterthan(last_changed, days):
if datetime.now() - last_changed > timedelta(days):
return False
def changed_greaterthan(last_changed, days):
if datetime.now() - last_changed > timedelta(days):
- print "last changed more than %s" % timedelta(days)
+
#
print "last changed more than %s" % timedelta(days)
return True
else:
return True
else:
- print "last changed less than %s" % timedelta(days)
+
#
print "last changed less than %s" % timedelta(days)
return False
return False