diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 9faaf32d..6dc4c9cf 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -193,14 +193,14 @@ class HrmService: "cardPrivilegeDetails": details } ind = 0 - while ind < 6: + while ind < 8: time.sleep(6) try: dhClient.request(**dhapis['card_door_authority'], json=json_data) break except Exception as e: ind = ind + 1 - if ind >= 6: + if ind >= 8: raise e # time.sleep(5) # is_ok, res = dhClient.request(**dhapis['card_door_authority'], json=json_data, raise_exception=False)