Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl_ai_recommender
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
闫发泽
ydl_ai_recommender
Commits
ed769b35
Commit
ed769b35
authored
Jun 27, 2023
by
柴鹏飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分画像字段为空导致的错误
parent
db437f1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
requirements.txt
requirements.txt
+1
-0
profile.py
src/core/profile.py
+9
-3
No files found.
requirements.txt
View file @
ed769b35
...
...
@@ -9,3 +9,4 @@ requests
tornado
==6.2
scikit-learn
requests
src/core/profile.py
View file @
ed769b35
...
...
@@ -217,7 +217,10 @@ class AidiCstBiasPriceProfile(BaseProfile):
if
pd
.
isnull
(
value
):
return
ret
json_object
=
json
.
loads
(
value
)
try
:
json_object
=
json
.
loads
(
value
)
except
Exception
:
return
ret
for
v
in
json_object
:
try
:
...
...
@@ -250,13 +253,16 @@ class MultiChoiceProfile(BaseProfile):
if
pd
.
isnull
(
value
):
return
ret
value
=
json
.
loads
(
value
)
try
:
value
=
json
.
loads
(
value
)
except
Exception
:
return
ret
for
v
in
value
:
try
:
i
=
self
.
option_dict
[
v
]
ret
[
i
]
=
1
except
Exception
as
e
:
except
Exception
:
pass
return
ret
...
...
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