Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
24a73ec5
Commit
24a73ec5
authored
Jun 05, 2020
by
任婷婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6c129fee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+2
-2
tool.py
eda/smart_rank/tool.py
+5
-17
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
24a73ec5
...
...
@@ -119,8 +119,8 @@ def update_tag3_user_portrait(cl_id):
# print('OUTPUT data:')
data
=
user_portrait_action_statistic
(
cl_id
)
print
(
'='
*
100
)
#
print(data)
print
(
'cl_id'
,
cl_id
)
print
(
data
)
#
print('cl_id',cl_id)
print
(
'='
*
100
)
for
key
,
values
in
data
.
items
():
cl_id_single
=
key
...
...
eda/smart_rank/tool.py
View file @
24a73ec5
...
...
@@ -479,7 +479,7 @@ def get_user_portrait_log(cl_id):
def
user_portrait_action_statistic
(
cl_id
):
#
try:
try
:
ud_dict
=
{}
user_df
=
get_user_portrait_log
(
cl_id
)
# print('-'*100)
...
...
@@ -524,9 +524,8 @@ def user_portrait_action_statistic(cl_id):
return
ud_dict
# except Exception as e:
# print('user_portrait_action_statistic error')
# print(e)
except
:
pass
#
#
...
...
@@ -546,16 +545,6 @@ def user_portrait_action_statistic(cl_id):
# PRIMARY KEY(`id`)
# );
# CREATE TABLE `user_portrait_test2` (
# `id` int(11) NOT NULL AUTO_INCREMENT,
# `date` text NOT NULL,
# `cl_id` text NOT NULL,
# `score` text NOT NULL,
# PRIMARY KEY(`id`)
# );
def
write_user_portrait_action_divided
(
cl_id
,
event_cn
,
score
,
first_solutions
,
second_solutions
,
first_demands
,
second_demands
,
first_positions
,
second_positions
,
projects
):
try
:
...
...
@@ -578,9 +567,8 @@ def write_user_portrait_action_divided(cl_id,event_cn,score,first_solutions, sec
db
.
close
()
cursor
.
close
()
except
Exception
as
e
:
print
(
"write_user_portrait_action_divided error"
)
print
(
e
)
except
:
pass
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