Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
ed442962
Commit
ed442962
authored
Mar 20, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
83429046
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
workspace.xml
.idea/workspace.xml
+0
-0
user.json
trans2es/mapping/user.json
+2
-2
user_transfer.py
trans2es/utils/user_transfer.py
+7
-2
No files found.
.idea/workspace.xml
View file @
ed442962
This diff is collapsed.
Click to expand it.
trans2es/mapping/user.json
View file @
ed442962
...
...
@@ -42,14 +42,14 @@
//
"update_time_val"
:{
"type"
:
"long"
}
//
}
//
},
"same_pictorial_user_id_list"
:{
//同
组
用户列表
"same_pictorial_user_id_list"
:{
//同
画报
用户列表
"type"
:
"nested"
,
"properties"
:{
"user_id"
:{
"type"
:
"long"
},
"country_id"
:{
"type"
:
"text"
}
}
},
"attention_pictorial_id_list"
:{
//关注
小组
列表
"attention_pictorial_id_list"
:{
//关注
画报
列表
"type"
:
"nested"
,
"properties"
:{
"pictorial_id"
:{
"type"
:
"long"
},
...
...
trans2es/utils/user_transfer.py
View file @
ed442962
...
...
@@ -74,6 +74,7 @@ class UserTransfer(object):
try
:
res
[
"tag_list"
]
=
instance
.
get_user_tag_id_list
()
res
[
"attention_user_id_list"
]
=
cls
.
get_follow_user_id_list
(
userInstance
=
instance
)
# res["attention_group_id_list"] = instance.get_attention_group_id_list()
res
[
"pick_user_id_list"
]
=
instance
.
get_pick_user_id_list
()
...
...
@@ -86,9 +87,13 @@ class UserTransfer(object):
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
res
[
"tag_list"
]
=
[]
res
[
"attention_user_id_list"
]
=
[]
res
[
"attention_group_id_list"
]
=
[]
#
res["attention_group_id_list"] = []
res
[
"pick_user_id_list"
]
=
[]
res
[
"same_group_user_id_list"
]
=
[]
# res["same_group_user_id_list"] = []
res
[
"attention_pictorial_id_list"
]
=
[]
res
[
"same_pictorial_user_id_list"
]
=
[]
return
res
except
:
...
...
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