오타 수정
This commit is contained in:
@@ -75,13 +75,13 @@ def extractNationList(nationSheet):
|
|||||||
|
|
||||||
nationChiefInfo[name] = {}
|
nationChiefInfo[name] = {}
|
||||||
if len(row) >= 10:
|
if len(row) >= 10:
|
||||||
cheif0 = str(row[9])
|
chief0 = str(row[9])
|
||||||
if cheif0:
|
if chief0:
|
||||||
nationChiefInfo[name][cheif0] = 12
|
nationChiefInfo[name][chief0] = 12
|
||||||
if len(row) >= 11:
|
if len(row) >= 11:
|
||||||
cheif1 = str(row[10])
|
chief1 = str(row[10])
|
||||||
if cheif1:
|
if chief1:
|
||||||
nationChiefInfo[name][cheif1] = 11
|
nationChiefInfo[name][chief1] = 11
|
||||||
|
|
||||||
|
|
||||||
cities = list(map(str.strip, row[8].split(',')))
|
cities = list(map(str.strip, row[8].split(',')))
|
||||||
@@ -190,9 +190,9 @@ def extractGeneralList(generalSheet, nationList={}, nationChiefInfo={}):
|
|||||||
row.pop()
|
row.pop()
|
||||||
|
|
||||||
if level and row[3] in nationChiefInfo:
|
if level and row[3] in nationChiefInfo:
|
||||||
nationCheifDetail = nationChiefInfo[row[3]]
|
nationChiefDetail = nationChiefInfo[row[3]]
|
||||||
if row[1] in nationCheifDetail:
|
if row[1] in nationChiefDetail:
|
||||||
level = nationCheifDetail[row[1]]
|
level = nationChiefDetail[row[1]]
|
||||||
|
|
||||||
row.insert(8, level)
|
row.insert(8, level)
|
||||||
json_general_list.append(row)
|
json_general_list.append(row)
|
||||||
|
|||||||
Reference in New Issue
Block a user