Commits

Max Arnold committed 14caa2a

Fixed hard to notice validation bug (job was discarded if range contained zero)

  • Participants
  • Parent commits 2c37c51

Comments (0)

Files changed (1)

         if len(rparts) == 2:
             r1 = pycron.parse_fnum(nfield, rparts[0])
             r2 = pycron.parse_fnum(nfield, rparts[1])
-            if False in (r1, r2) or r1 > r2: return False
+            if r1 is False or r2 is False or r1 > r2: return False
         else:
             if rparts[0] == '*':
                 r1 = pycron.f_ranges[nfield]['min']