修复周边配套为0bug
This commit is contained in:
@@ -87,7 +87,7 @@ def format_facilitys(x):
|
|||||||
info = list()
|
info = list()
|
||||||
|
|
||||||
if 'school' in x:
|
if 'school' in x:
|
||||||
if type(x['school']) is not int:
|
if type(x['school']) is not float:
|
||||||
x.school = 0
|
x.school = 0
|
||||||
else:
|
else:
|
||||||
if x.school > 0:
|
if x.school > 0:
|
||||||
@@ -95,7 +95,7 @@ def format_facilitys(x):
|
|||||||
if x.school > 10:
|
if x.school > 10:
|
||||||
x.school = 10
|
x.school = 10
|
||||||
if 'bank' in x:
|
if 'bank' in x:
|
||||||
if type(x['bank']) is not int:
|
if type(x['bank']) is not float:
|
||||||
x.bank = 0
|
x.bank = 0
|
||||||
else:
|
else:
|
||||||
if x.bank > 0:
|
if x.bank > 0:
|
||||||
@@ -104,7 +104,7 @@ def format_facilitys(x):
|
|||||||
x.bank = 30
|
x.bank = 30
|
||||||
|
|
||||||
if 'hospital' in x:
|
if 'hospital' in x:
|
||||||
if type(x['hospital']) is not int:
|
if type(x['hospital']) is not float:
|
||||||
x.hospital = 0
|
x.hospital = 0
|
||||||
else:
|
else:
|
||||||
if x.hospital > 0:
|
if x.hospital > 0:
|
||||||
@@ -113,7 +113,7 @@ def format_facilitys(x):
|
|||||||
x.hospital = 10
|
x.hospital = 10
|
||||||
|
|
||||||
if 'market' in x:
|
if 'market' in x:
|
||||||
if type(x['market']) is not int:
|
if type(x['market']) is not float:
|
||||||
x.market = 0
|
x.market = 0
|
||||||
else:
|
else:
|
||||||
if x.market > 0:
|
if x.market > 0:
|
||||||
@@ -122,7 +122,7 @@ def format_facilitys(x):
|
|||||||
x.market = 15
|
x.market = 15
|
||||||
|
|
||||||
if 'subway' in x:
|
if 'subway' in x:
|
||||||
if type(x['subway']) is not int:
|
if type(x['subway']) is not float:
|
||||||
x.subway = 0
|
x.subway = 0
|
||||||
else:
|
else:
|
||||||
if x.subway > 0:
|
if x.subway > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user