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
422acdad
authored
Sep 18, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add cn file
parent
40fb380a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
rs_data.py
rs_data.py
View file @
422acdad
...
...
@@ -139,9 +139,9 @@ def handle_cn_csv(file_name):
prices
.
append
(
row
[
i
])
for
k
in
range
(
min
(
len
(
ladder_number
),
len
(
prices
))):
item_map
=
dict
()
item_map
[
"purchases"
]
=
int
(
ladder_number
[
i
])
item_map
[
"purchases"
]
=
int
(
ladder_number
[
k
])
item_map
[
"price_us"
]
=
float
(
0
)
item_map
[
"price_cn"
]
=
float
(
prices
[
i
])
item_map
[
"price_cn"
]
=
float
(
prices
[
k
])
ladder_price
.
append
(
item_map
)
message_map
[
"ladder_price"
]
=
ladder_price
message_map
[
"price_is_us"
]
=
False
...
...
@@ -150,18 +150,6 @@ def handle_cn_csv(file_name):
if
__name__
==
'__main__'
:
environment
=
sys
.
argv
[
1
]
if
environment
not
in
{
"local"
,
"dev"
,
"prod"
}:
...
...
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