diff --git a/netforce_clinic/models/visit_board.py b/netforce_clinic/models/visit_board.py index 7ff7aa8..6eba335 100644 --- a/netforce_clinic/models/visit_board.py +++ b/netforce_clinic/models/visit_board.py @@ -122,6 +122,9 @@ class VisitBoard(Model): for pc in pt.cycles: w=DAYS.get(pc.day,0) #default monday cycle=pc.cycle_id + if not cycle: + continue + #raise Exception('cycle setting for %s is not correct!'%(pt.name)) department=pc.department_id if weekday==w: dom2=[