adding lat/lon to the db
This commit is contained in:
parent
72ff6a7202
commit
8698b41e0e
2 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ class RightmoveListing(Base):
|
|||
listing_json = Column(JSON, nullable=True)
|
||||
detail_json = Column(JSON, nullable=True)
|
||||
updated_timestamp = Column(Integer, nullable=True)
|
||||
lat = Column(FLOAT)
|
||||
lon = Column(FLOAT)
|
||||
distance_to_office_minutes = Column(FLOAT, nullable=True)
|
||||
|
||||
def save(self):
|
||||
|
|
|
|||
|
|
@ -74,5 +74,7 @@ if __name__ == "__main__":
|
|||
listing_json=d,
|
||||
price=d["price"],
|
||||
updated_timestamp=d["updateDate"],
|
||||
lat=d["latitude"],
|
||||
lon=d["longitude"],
|
||||
)
|
||||
rl.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue