Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
robo-dividend
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenwen.tang
robo-dividend
Commits
8202628c
Commit
8202628c
authored
Jan 04, 2024
by
wenwen.tang
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
ce1261ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
checker.py
portfolios/checker.py
+1
-1
No files found.
portfolios/checker.py
View file @
8202628c
...
@@ -35,7 +35,7 @@ class DefaultPortfoliosChecker(PortfoliosChecker):
...
@@ -35,7 +35,7 @@ class DefaultPortfoliosChecker(PortfoliosChecker):
if
len
(
keys
)
>
0
:
if
len
(
keys
)
>
0
:
# 选取非同公司的、风险等级小于等于原基金的 基金
# 选取非同公司的、风险等级小于等于原基金的 基金
ids
=
[
fund
[
'id'
]
for
fund
in
funds
if
fund
[
'companyType'
]
!=
list
(
companies
)[
0
]
and
ids
=
[
fund
[
'id'
]
for
fund
in
funds
if
fund
[
'companyType'
]
!=
list
(
companies
)[
0
]
and
fund
[
'risk'
]
<=
min
(
fund
[
'risk'
]
for
fund
in
funds
if
fund
[
'id'
]
in
keys
)]
fund
[
'risk'
]
<=
min
(
fund
[
'risk'
]
for
fund
in
funds
if
str
(
fund
[
'id'
])
in
keys
)]
best
=
self
.
find_highest_score
(
ids
,
day
)
best
=
self
.
find_highest_score
(
ids
,
day
)
# 若刚好有一个匹配,直接替换
# 若刚好有一个匹配,直接替换
if
len
(
keys
)
==
1
:
if
len
(
keys
)
==
1
:
...
...
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