More ruff fixes (#2)
* adding ruff auto check for pull requests as well as fixing all ruff errors * More ruff fixes: forgot half of the ruff checks Forgot to do a git add all :D --------- Co-authored-by: Kadir <git@k8n.dev>
This commit is contained in:
parent
4c23acdb55
commit
0801aaf200
14 changed files with 23 additions and 32 deletions
|
|
@ -113,7 +113,7 @@ class FetchListingDetailsStep(Step):
|
|||
council_tax_band=listing_details["property"]["councilTaxInfo"]["content"][
|
||||
0
|
||||
]["value"],
|
||||
longtitude=listing_details["property"]["longitude"],
|
||||
longitude=listing_details["property"]["longitude"],
|
||||
latitude=listing_details["property"]["latitude"],
|
||||
price_history_json="{}", # TODO: should upsert from existing
|
||||
listing_site=ListingSite.RIGHTMOVE,
|
||||
|
|
@ -153,8 +153,8 @@ class FetchImagesStep(Step):
|
|||
"floorplans", []
|
||||
)
|
||||
client_timeout = aiohttp.ClientTimeout(total=30)
|
||||
for floorplan in all_floorplans:
|
||||
url = floorplan["url"]
|
||||
for floorplan_obj in all_floorplans:
|
||||
url = floorplan_obj["url"]
|
||||
picname = url.split("/")[-1]
|
||||
floorplan_path = Path(base_path, str(listing.id), "floorplans", picname)
|
||||
if floorplan_path.exists():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue