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
549f93b7
authored
Oct 17, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add attr
parent
806bac94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
test5.py
test5.py
View file @
549f93b7
...
...
@@ -133,9 +133,9 @@ def insert_pop_attr_to_db():
password
=
config
[
"mysql"
][
"password"
])
cursor
=
db
.
cursor
()
cursor
.
execute
(
query
=
select_sql
)
result
=
cursor
.
fetchall
()
for
i
in
range
(
len
(
result
)):
class_id
=
result
[
i
][
0
]
db_
result
=
cursor
.
fetchall
()
for
i
in
range
(
len
(
db_
result
)):
class_id
=
db_
result
[
i
][
0
]
ans
=
get_pop_attr
(
class_id
)
result
=
ans
[
"jingdong_category_read_findAttrsByCategoryIdUnlimitCate_responce"
][
"findattrsbycategoryidunlimitcate_result"
]
for
j
in
range
(
len
(
result
)):
...
...
@@ -189,5 +189,4 @@ def insert_pop_attr_to_db():
if
__name__
==
'__main__'
:
ans
=
get_pop_attr
(
33593
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
\ No newline at end of file
insert_pop_attr_to_db
()
\ No newline at end of file
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