This commit is contained in:
aozhiwei 2020-11-09 11:50:10 +08:00
parent 5c16d377fe
commit c7e898d267
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ def convertSheet(sourceFile, sheet):
out_file.close() out_file.close()
def convert(sourceFile): def convert(sourceFile):
if sourceFile != 'PlatformIds.xlsx': if sourceFile != 'PlatformIds_raw.xlsx':
return return
print(sourceFile) print(sourceFile)
excel = xlrd.open_workbook(sourceFile) excel = xlrd.open_workbook(sourceFile)

View File

@ -55,8 +55,8 @@ def convertSheet(sourceFile, sheet):
csvfile.close() csvfile.close()
def convert(sourceFile): def convert(sourceFile):
# if sourceFile == 'PlatformIds.xlsx': if sourceFile == 'PlatformIds_raw.xlsx':
# return return
print(sourceFile) print(sourceFile)
excl = xlrd.open_workbook(sourceFile) excl = xlrd.open_workbook(sourceFile)
for sheet in excl.sheets(): for sheet in excl.sheets():