diff --git a/PriceSystem/feature/__pycache__/region_feature.cpython-36.pyc b/PriceSystem/feature/__pycache__/region_feature.cpython-36.pyc index 34da918..8206243 100644 Binary files a/PriceSystem/feature/__pycache__/region_feature.cpython-36.pyc and b/PriceSystem/feature/__pycache__/region_feature.cpython-36.pyc differ diff --git a/PriceSystem/feature/region_feature.py b/PriceSystem/feature/region_feature.py index 621fa7c..ab14f53 100644 --- a/PriceSystem/feature/region_feature.py +++ b/PriceSystem/feature/region_feature.py @@ -312,7 +312,7 @@ def return_operate(ppu,mm): if ppu==None: return 0 else: - return int(10000*(mm-ppu)/ppu,2) + return int(10000*(mm-ppu)/ppu) ''' def before_month_lastday(ti): diff --git a/PriceSystem/rent_price/__pycache__/district_map0413.cpython-36.pyc b/PriceSystem/rent_price/__pycache__/district_map0413.cpython-36.pyc index dceea76..79dcdc8 100644 Binary files a/PriceSystem/rent_price/__pycache__/district_map0413.cpython-36.pyc and b/PriceSystem/rent_price/__pycache__/district_map0413.cpython-36.pyc differ diff --git a/PriceSystem/rent_price/district_map0413.py b/PriceSystem/rent_price/district_map0413.py index 30d7f45..91e81d7 100644 --- a/PriceSystem/rent_price/district_map0413.py +++ b/PriceSystem/rent_price/district_map0413.py @@ -894,10 +894,12 @@ def save_to_mongo(ct,rl,lk,timd,timm): def return_operate(ppu,mm): + print(ppu,mm) + if ppu==None: return 0 else: - return int(10000*(mm-ppu)/ppu,2) + return int(10000*(mm-ppu)/ppu) ''' def month_lastday(ti): from dateutil.parser import parse diff --git a/PriceSystem/rent_test.py b/PriceSystem/rent_test.py index 9e45f14..c9c6c59 100644 --- a/PriceSystem/rent_test.py +++ b/PriceSystem/rent_test.py @@ -16,9 +16,9 @@ def get_weekend(tt): weekend = get_weekend('20180415') -ct='上海' -rl='黄浦' -lk='伯爵居'#上海闵行闵浦新苑一村普陀曹杨一村上海 +ct='北京' +rl='东城' +lk='左安漪园'#上海闵行闵浦新苑一村普陀曹杨一村上海北京东城左安漪园 #黄浦伯爵居静安泰安里长宁新泾北苑 timm=20180430 timd=20160603