Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
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
373d57cf
authored
Jul 01, 2025
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加品牌
parent
b5d977e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
brand_redis.py
brand_redis.py
View file @
373d57cf
...
@@ -30,13 +30,12 @@ def get_redis_conn():
...
@@ -30,13 +30,12 @@ def get_redis_conn():
task_redis
=
redis
.
Redis
(
connection_pool
=
pool
)
task_redis
=
redis
.
Redis
(
connection_pool
=
pool
)
return
task_redis
return
task_redis
redis_pool
=
get_redis_conn
()
redis_pool
=
get_redis_conn
()
def
main
():
def
main
():
# brand_list = ["AMAZING(晶焱)","EUTECH(台湾德信)"]
# brand_list = ["AMAZING(晶焱)","EUTECH(台湾德信)"]
brand_list
=
[
"
3M
"
]
brand_list
=
[
"
华润微"
,
"昂科
"
]
for
brand_name
in
brand_list
:
for
brand_name
in
brand_list
:
res
=
redis_pool
.
sadd
(
"brand_set"
,
brand_name
)
res
=
redis_pool
.
sadd
(
"brand_set"
,
brand_name
)
if
res
:
if
res
:
...
...
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