xiuagairenwu

This commit is contained in:
shilixia 2020-04-08 11:02:37 +08:00
parent 3d446a34dc
commit acc5049bc5
2 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ def riskacttask():
@shared_task
def checktask():
nowtime = datetime.datetime.now()
for i in Checktask.objects.exclude(tasktype=0):
for i in Checktask.objects.exclude(deletemark=0):
if i.tasktype==1:
if i.checktime:

View File

@ -7864,11 +7864,11 @@ def checkprojects(req):
obj.zgjg = req.POST.get('zgjg')
obj.taskstate = req.POST.get('taskstate')
obj.createuser = User.objects.get(userid=userid)
if req.POST.get('content')!='undefined':
if req.POST.get('content')!="":
obj.content=req.POST.get('content')
s=[]
if req.POST.get('participant')!='undefined':
if req.POST.get('participant')!="":
list = req.POST.get('participant').split(',')
for i in list:
x = User.objects.get(userid=i)