adding last seen date into the listing
This commit is contained in:
parent
4b6b8628c2
commit
29c8d1960b
2 changed files with 22 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
from rec.query import listing_query
|
||||
from rec.districts import get_districts
|
||||
import pathlib
|
||||
import json
|
||||
from data_access import Listing
|
||||
|
||||
folder = pathlib.Path("data/rs/")
|
||||
|
|
@ -20,7 +19,7 @@ for district, locid in districts.items():
|
|||
max_price=1000000,
|
||||
location_id=locid,
|
||||
page_size=500,
|
||||
max_days_since_added=7,
|
||||
max_days_since_added=None,
|
||||
)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
@ -35,6 +34,5 @@ for district, locid in districts.items():
|
|||
identifier = property["identifier"]
|
||||
|
||||
listing = Listing(identifier)
|
||||
with open(listing.path_listing_json(), "w") as f:
|
||||
json.dump(property, f)
|
||||
listing.dump_listing(property)
|
||||
print() # break line as we used end=, above.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue