mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
More ruff linter fixes
This commit is contained in:
@@ -25,10 +25,10 @@ class POTA(FileDownloadSIGRefDataProvider):
|
||||
SIGRef(
|
||||
sig=self.SIG,
|
||||
id=ref_id,
|
||||
name=row["name"] if "name" in row else None,
|
||||
name=row.get("name", None),
|
||||
ref_type="Park",
|
||||
url=f"https://pota.app/#/park/{ref_id}",
|
||||
grid=row["grid"] if "grid" in row else None,
|
||||
grid=row.get("grid", None),
|
||||
latitude=float(row["latitude"]) if "latitude" in row and row["latitude"] != "" else None,
|
||||
longitude=float(row["longitude"]) if "longitude" in row and row["longitude"] != "" else None,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user