xiuagairenwu
This commit is contained in:
parent
3d446a34dc
commit
acc5049bc5
|
@ -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:
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue