修改: PriceSystem/feature/region_feature.py
修改: PriceSystem/rent_price/district_map0413.py
This commit is contained in:
Binary file not shown.
@@ -312,7 +312,7 @@ def return_operate(ppu,mm):
|
|||||||
if ppu==None:
|
if ppu==None:
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
return int(10000*(mm-ppu)/ppu,2)
|
return int(10000*(mm-ppu)/ppu)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
def before_month_lastday(ti):
|
def before_month_lastday(ti):
|
||||||
|
|||||||
Binary file not shown.
@@ -894,10 +894,12 @@ def save_to_mongo(ct,rl,lk,timd,timm):
|
|||||||
|
|
||||||
def return_operate(ppu,mm):
|
def return_operate(ppu,mm):
|
||||||
|
|
||||||
|
print(ppu,mm)
|
||||||
|
|
||||||
if ppu==None:
|
if ppu==None:
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
return int(10000*(mm-ppu)/ppu,2)
|
return int(10000*(mm-ppu)/ppu)
|
||||||
'''
|
'''
|
||||||
def month_lastday(ti):
|
def month_lastday(ti):
|
||||||
from dateutil.parser import parse
|
from dateutil.parser import parse
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ def get_weekend(tt):
|
|||||||
|
|
||||||
weekend = get_weekend('20180415')
|
weekend = get_weekend('20180415')
|
||||||
|
|
||||||
ct='上海'
|
ct='北京'
|
||||||
rl='黄浦'
|
rl='东城'
|
||||||
lk='伯爵居'#上海闵行闵浦新苑一村普陀曹杨一村上海
|
lk='左安漪园'#上海闵行闵浦新苑一村普陀曹杨一村上海北京东城左安漪园
|
||||||
#黄浦伯爵居静安泰安里长宁新泾北苑
|
#黄浦伯爵居静安泰安里长宁新泾北苑
|
||||||
timm=20180430
|
timm=20180430
|
||||||
timd=20160603
|
timd=20160603
|
||||||
|
|||||||
Reference in New Issue
Block a user