I was using this code:
我使用的代码是:
def saveUploadedInventory(self, inventory_file,user_id):
with open('uploaded_inventory_sheet.csv','wb+') as destination:
for chunk in inventory_file.chunks():
destination.write(chunk)
reader = csv.reader(open('uploaded_inventory_sheet.csv','rb'))
def saveU