Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
europa-erp-python
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
ce4b9fe0
authored
Sep 20, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix bug
parent
841d1487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
rs_data.py
rs_data.py
View file @
ce4b9fe0
...
...
@@ -88,6 +88,8 @@ def handle_hk_csv(file_name, conf: dict, supplier_id: int):
message_map
[
"ladder_price"
]
=
ladder_price
message_map
[
"price_is_us"
]
=
True
message_map
[
"supplier_name"
]
=
'Rs'
if
message_map
[
"brand_name"
]
==
""
or
message_map
[
"goods_name"
]
==
""
:
continue
json_str
=
json
.
dumps
(
message_map
)
p
.
push
(
json_str
,
exchange
=
conf
[
"rabbit_mq"
][
"producer"
][
"rabbit_mq_exchange"
],
routing_key
=
conf
[
"rabbit_mq"
][
"producer"
][
"rabbit_mq_routing_key"
])
...
...
@@ -156,6 +158,8 @@ def handle_cn_csv(file_name, conf: dict, supplier_id: int):
message_map
[
"ladder_price"
]
=
ladder_price
message_map
[
"price_is_us"
]
=
False
message_map
[
"supplier_name"
]
=
'RS-CN'
if
message_map
[
"brand_name"
]
==
""
or
message_map
[
"goods_name"
]
==
""
:
continue
json_str
=
json
.
dumps
(
message_map
)
p
.
push
(
json_str
,
exchange
=
conf
[
"rabbit_mq"
][
"producer"
][
"rabbit_mq_exchange"
],
routing_key
=
conf
[
"rabbit_mq"
][
"producer"
][
"rabbit_mq_routing_key"
])
...
...
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