Skip to content

Commit

Permalink
#14, avoid future error, but still need to fix error in existing data
Browse files Browse the repository at this point in the history
  • Loading branch information
ddio committed Aug 12, 2018
1 parent 17df376 commit e71fe8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crawler/crawler/spiders/detail591_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ def get_shared_basic(self, detail_dict, house):
# Issue #15, update only deal_status in crawler
# let `syncstateful` to update the rest
ret['deal_status'] = enums.DealStatusType.DEAL
else:
# Issue #14, always update deal status since item may be reopened
ret['deal_status'] = enums.DealStatusType.OPENED

# building_type, 公寓 / 電梯大樓 / 透天
if '型態' in detail_dict['side_metas']:
Expand Down

0 comments on commit e71fe8f

Please sign in to comment.