Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
inspect_report
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
zhengjinlei
inspect_report
Commits
2218555b
Commit
2218555b
authored
Jun 09, 2020
by
zhengjinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改分数
parent
5bd64cf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
report_utils.py
src/inspect_report/utils/report_utils.py
+4
-4
No files found.
src/inspect_report/utils/report_utils.py
View file @
2218555b
...
@@ -144,15 +144,15 @@ def single_score_stat(t, create_date, stat_count=0):
...
@@ -144,15 +144,15 @@ def single_score_stat(t, create_date, stat_count=0):
for
check
in
checks
:
for
check
in
checks
:
stat_count
+=
1
stat_count
+=
1
score_item
=
json
.
loads
(
check
[
'scoreItemRecord'
])
score_item
=
json
.
loads
(
check
[
'scoreItemRecord'
])
service_score
=
service_s
service_score
=
35
business_score
=
business_s
business_score
=
65
validate_zero
=
0
validate_zero
=
0
for
m
in
score_item
:
for
m
in
score_item
:
if
m
[
'scoreItemName'
]
in
score_item_service
.
keys
():
if
m
[
'scoreItemName'
]
in
score_item_service
.
keys
():
service_score
-=
m
[
'score'
]
service_score
-=
m
[
'score'
]
if
m
[
'scoreType'
]
==
1
else
-
m
[
'score'
]
if
m
[
'scoreItemName'
]
in
score_item_business
.
keys
():
if
m
[
'scoreItemName'
]
in
score_item_business
.
keys
():
business_score
-=
m
[
'score'
]
business_score
-=
m
[
'score'
]
if
m
[
'scoreType'
]
==
1
else
-
m
[
'score'
]
if
m
[
'scoreItemName'
]
in
score_item_zero
.
keys
():
if
m
[
'scoreItemName'
]
in
score_item_zero
.
keys
():
validate_zero
+=
1
validate_zero
+=
1
if
validate_zero
>
0
:
if
validate_zero
>
0
:
...
...
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