fix NameError: name 'data' is not defined in convert.py (#220)

This commit is contained in:
François BAPTISTE
2023-07-20 10:32:34 +02:00
committed by GitHub
parent 8f5076297a
commit 6a4a403942

View File

@@ -177,4 +177,4 @@ def pmtiles_to_dir(input, output):
path = os.path.join(directory, str(zxy[2]) + "." + "mvt") path = os.path.join(directory, str(zxy[2]) + "." + "mvt")
os.makedirs(directory, exist_ok=True) os.makedirs(directory, exist_ok=True)
with open(path, "wb") as f: with open(path, "wb") as f:
f.write(data) f.write(tile_data)