|
@@ -136,9 +136,10 @@ def run(conn, retry_bad_pids=True):
|
|
|
for pid, ts, price in rows:
|
|
for pid, ts, price in rows:
|
|
|
row = run_single(conn, pid)
|
|
row = run_single(conn, pid)
|
|
|
size, ber, address, main_photo, bedrooms, bathrooms, price = row
|
|
size, ber, address, main_photo, bedrooms, bathrooms, price = row
|
|
|
|
|
+ price = ('%sk' % int(int(price)/1000)) if price != 'GONE' else price
|
|
|
|
|
|
|
|
f.write('<a href="%i.html"><h2>%s</h2></a>' % (pid, address))
|
|
f.write('<a href="%i.html"><h2>%s</h2></a>' % (pid, address))
|
|
|
- f.write('<h2>%sk, %s m<sup>2</sup>, %s br / %s b, %s</h2>\n' % (int(int(price)/1000), size, bedrooms, bathrooms, ber))
|
|
|
|
|
|
|
+ f.write('<h2>%s, %s m<sup>2</sup>, %s br / %s b, %s</h2>\n' % (price, size, bedrooms, bathrooms, ber))
|
|
|
if main_photo:
|
|
if main_photo:
|
|
|
f.write('<a href="%i.html"><img src="%s"></a>' % (pid, main_photo))
|
|
f.write('<a href="%i.html"><img src="%s"></a>' % (pid, main_photo))
|
|
|
if not _test_url(main_photo):
|
|
if not _test_url(main_photo):
|