Commit 2550f2e5 by larosa

add new line

parent 6e7e8746
Showing with 2 additions and 2 deletions
......@@ -72,7 +72,7 @@ class HandleCSV:
else:
table['stock'] = int(data)
elif title_arr[j] == 'MOQ':
table['moq'] = data
table['moq'] = int(data)
elif title_arr[j] in ladder_map:
if len(str(data).strip()) != 0 and str(data).strip().isdigit():
ladder_item_map['purchases'] = int(data)
......@@ -113,7 +113,7 @@ class HandleCSV:
if __name__ == '__main__':
start = time.time()
HandleCSV().parse('Tianyang_Inventory_Feed_RMB.xlsx')
HandleCSV().parse('Tianyang_Inventory_Feed_RMB.csv')
end = time.time()
print("spend time: " + str(end - start))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment