From 23b8f77b365253ccf1a3aba7921ebc51489edc5c Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 15 Apr 2020 11:56:32 +0800 Subject: [PATCH] xiugaixiaochengux --- safesite/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safesite/views.py b/safesite/views.py index b9c524e7..7f63a31c 100644 --- a/safesite/views.py +++ b/safesite/views.py @@ -7994,11 +7994,11 @@ def checkprojects(req): x = a.values('checktask__checktaskname','starttime','zgjg','checktask__tasktype','endtime','jobstate','zguser__username','checktask__checktype__checkcontent','checktask__checkplace','checktask__checktime' ,'checkname__username','checkname__name', 'checkquestion', 'zgtime', 'zguser__username', 'createuser__username', 'createdate', 'taskstate','zghtp','content','yhtp','pmpeople', 'zgyq','zgjg', 'yanshou', 'yanshouren__name')[0] x['bcfr'] = uselist - if x['yhtp'] != '': + if x['yhtp']: x['yhtp'] = x['yhtp'].split('?') else: x['yhtp'] == [] - if x['zghtp'] != '': + if x['zghtp']: x['zghtp'] = x['zghtp'].split('?') else: x['zghtp'] == []