Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
06aa514b
Commit
06aa514b
authored
Apr 27, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230427
parent
dd9740c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apps/view_radar/view.py
+3
-3
No files found.
apps/view_radar/view.py
View file @
06aa514b
...
...
@@ -311,11 +311,11 @@ def prolink():
"bedness"
:
12
if
bedness
>
12
else
bedness
}
if
link_type
==
1
:
# "缺失环节":
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
==
0
]
[
12
:]
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
==
0
]
elif
link_type
==
2
:
# "薄弱环节":
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
>
0
and
item
.
score
<=
cent
]
[
12
:]
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
>
0
and
item
.
score
<=
cent
]
elif
link_type
==
3
:
# "优势环节":
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
>
cent
]
[
12
:]
result_bylink
=
[
item
.
product
for
item
in
edata
if
item
.
score
>
cent
]
else
:
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"参数错误"
)
# if not result_bylink:
...
...
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