Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
automatedtestplatform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
automatedtestplatform
Commits
b73fd0bb
Commit
b73fd0bb
authored
Nov 30, 2022
by
王英豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log2
parent
5e0b254d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
personnel_allocation_view.py
...rogress/personnel_allocation/personnel_allocation_view.py
+25
-19
No files found.
automated_main/view/testing_progress/personnel_allocation/personnel_allocation_view.py
View file @
b73fd0bb
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment