From ae518c9be3e5124360bc0d7142fc8f902a041757 Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Mon, 22 Jun 2015 21:23:06 +0700 Subject: [PATCH] xxx --- netforce_clinic/models/visit_board.py | 3 +++ 1 file changed, 3 insertions(+) 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=[