如果是三类考试工作类别不做过期检测

This commit is contained in:
caoqianming 2021-04-12 22:31:39 +08:00
parent 5fc75c4e06
commit 7624f450c3
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ VistorPerms = [
from .spider import getZs
def get_consumerperm_list(consumer):
perms = list(consumer.role.perms.values_list('code', flat=True))
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
if consumer.workscope.can_exam: # 如果是三类考试工作类别不做过期检测
pass
elif consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
if consumer.name and consumer.ID_number1:
candidates = getZs(consumer.name, consumer.ID_number1)
if candidates: