From 5acf67ad33359e3cc00a60dfd78c6cb1880e131e Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 5 Jul 2022 11:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=A8=E8=BE=B9=E9=85=8D?= =?UTF-8?q?=E5=A5=97=E4=B8=BA0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/mt/supply/facilitys.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dags/mt/supply/facilitys.py b/dags/mt/supply/facilitys.py index ad0a168..328015a 100644 --- a/dags/mt/supply/facilitys.py +++ b/dags/mt/supply/facilitys.py @@ -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: