Commit b73fd0bb authored by 王英豪's avatar 王英豪

log2

parent 5e0b254d
...@@ -31,27 +31,33 @@ class PersonnelAllocationView(View): ...@@ -31,27 +31,33 @@ class PersonnelAllocationView(View):
logger.info('222222222222') logger.info('222222222222')
logger.info(ENV_PROFILE) logger.info(ENV_PROFILE)
logger.info('222222222222') logger.info('222222222222')
try:
if 'color' in data.keys():
TestingProgress.objects.create(testing_progress_title=data['text'],
start_date=data['start_date'],
end_date=data['end_date'],
duration=data['duration'],
group=data['group'],
parent=data['parent'],
testing_progress=data['progress'],
type=data['color'],
description=data['description'])
else:
TestingProgress.objects.create(testing_progress_title=data['text'],
group=data['group'],
parent=data['parent'],
testing_progress='',
type='',
description='')
except Exception as e:
logger.info('33333333')
print(e)
logger.info('33333333')
pass
if 'color' in data.keys():
TestingProgress.objects.create(testing_progress_title=data['text'],
start_date=data['start_date'],
end_date=data['end_date'],
duration=data['duration'],
group=data['group'],
parent=data['parent'],
testing_progress=data['progress'],
type=data['color'],
description=data['description'])
else:
TestingProgress.objects.create(testing_progress_title=data['text'],
group=data['group'],
parent=data['parent'],
testing_progress='',
type='',
description='')
return response_success("创建成功") return response_success("创建成功")
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment