父節點
c463b468e8
當前提交
2358bc42c5
|
@ -97,8 +97,14 @@ def send_notification(config, flats):
|
|||
for flat in flats:
|
||||
title = str(flat.title)
|
||||
flat_id = str(flat.id)
|
||||
area = str(int(flat.area))
|
||||
cost = int(flat.cost)
|
||||
try:
|
||||
area = str(int(flat.area))
|
||||
except (TypeError, ValueError):
|
||||
area = None
|
||||
try:
|
||||
cost = int(flat.cost)
|
||||
except (TypeError, ValueError):
|
||||
cost = None
|
||||
currency = str(flat.currency)
|
||||
|
||||
txt += f"- {title}: {website_url}#/flat/{flat_id} "
|
||||
|
|
載入中…
新增問題並參考