Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def evaluate(self, subj_py, obj_py):
try:
return isodate.parse(subj_py) == isodate.parse(obj_py)
except ValueError:
return None
def evaluateObject(self, subj_py):
try:
return str(isodate.parse(subj_py))
except:
return None
def evaluateObject(self, subj_py):
weekdayZero = time.gmtime(0)[6]
return (weekdayZero + int(isodate.parse(subj_py)/DAY)) % 7
def evaluateObject(self, subj_py):
try:
return float(isodate.parse(subj_py))
except ValueError, AssertionError:
progress("Warning: Failed to parse time string '%s'" % subj_py)
return None
def evaluateObject(self, subj_py):
try:
return float(isodate.parse(subj_py))
except ValueError, AssertionError:
progress("Warning: Failed to parse time string '%s'" % subj_py)
return None
def evaluate(self, subj_py, obj_py):
try:
return isodate.parse(subj_py) == isodate.parse(obj_py)
except ValueError:
return None
def evaluateObject(self, subj_py):
weekdayZero = time.gmtime(0)[6]
return str((weekdayZero + int(isodate.parse(subj_py)/DAY)) % 7 )
def evaluate(self, subj_py, obj_py):
try:
return isodate.parse(subj_py) == isodate.parse(obj_py)
except:
return None