fix up the mark evaluator validity check
This commit is contained in:
parent
f1a1695aaa
commit
e8feee0612
|
@ -27,7 +27,8 @@ class MarkEvaluator(object):
|
||||||
self._mark_name = name
|
self._mark_name = name
|
||||||
|
|
||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
return bool(self._marks)
|
# dont cache here to prevent staleness
|
||||||
|
return bool(self._get_marks())
|
||||||
__nonzero__ = __bool__
|
__nonzero__ = __bool__
|
||||||
|
|
||||||
def wasvalid(self):
|
def wasvalid(self):
|
||||||
|
|
Loading…
Reference in New Issue