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
this doesn't work.
[monitor.git]
/
monitor
/
common.py
diff --git
a/monitor/common.py
b/monitor/common.py
index
c3ece6f
..
05a4ec2
100644
(file)
--- a/
monitor/common.py
+++ b/
monitor/common.py
@@
-240,6
+240,9
@@
def changed_lessthan(last_changed, days):
return False
def changed_greaterthan(last_changed, days):
return False
def changed_greaterthan(last_changed, days):
+ if last_changed is None:
+ return False
+
if datetime.now() - last_changed > timedelta(days):
#print "last changed more than %s" % timedelta(days)
return True
if datetime.now() - last_changed > timedelta(days):
#print "last changed more than %s" % timedelta(days)
return True