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