mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-15 08:57:31 +00:00
Oops, "type" was a bad choice of field name
This commit is contained in:
@@ -20,7 +20,7 @@ class Towers(FileDownloadSIGRefDataProvider):
|
||||
for row in csv.DictReader(http_response.content.decode("utf-8-sig").splitlines(), delimiter=";"):
|
||||
ref_id = row["Ref"]
|
||||
new_data.append(SIGRef(sig=self.SIG, id=ref_id, name=row["Nazev"] if "Nazev" in row else None,
|
||||
type="Tower",
|
||||
ref_type="Tower",
|
||||
url="https://wwtota.com/seznam/karta_rozhledny.php?ref=" + ref_id,
|
||||
grid=row["Lokator"] if "Lokator" in row and row["Lokator"] != "" else None,
|
||||
latitude=float(row["Lat"]) if "Lat" in row and row["Lat"] != "" else None,
|
||||
|
||||
Reference in New Issue
Block a user