Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4c0d8d1
authored
Oct 10, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add dict
parent
cc3820fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
update_jd_attr.py
update_jd_attr.py
View file @
c4c0d8d1
...
...
@@ -6,6 +6,7 @@ import time
import
pymysql
from
common
import
request_to_jd_vc
import
redis
# TODO 通知基石平台告警 ??? 是不是按照原来的方式?? 用is_mapping 字段来进行标识???
...
...
@@ -213,12 +214,19 @@ def update_ext_attr_by_class_ids(conf: dict):
def
insert_ext_attr_to_redis
(
class_
id
,
attr_id
):
def
insert_ext_attr_to_redis
(
class_
attr_map
:
dict
):
"""
拓展属性存到 redis中
key : jd_ext_attr
field: 分类id
value: 拓展属性id数组。
for example: jd_ext_attr 33811 [235914, 562124]
class_attr_map 结构:
{
33811: [235914, 562124],
33471: [1001074361, 236705]
}
"""
...
...
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