Skip to content

Commit 575a1f3

Browse files
committed
fix ref
1 parent b0ae873 commit 575a1f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pygeometa/schemas/schema_org/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]:
237237
'@type': 'schema:Place',
238238
'geo': {
239239
'@type': 'schema:GeoShape',
240-
'box': f'{miny},{minx} {maxy},{maxx}'
240+
'box': f'{miny} {minx} {maxy} {maxx}'
241241
}
242242
}],
243243
'name': title[0],
@@ -384,7 +384,6 @@ def generate_party(self, contact: dict,
384384
self.lang1, self.lang2)
385385

386386
rp = {
387-
'addresses': [{}],
388387
'roles': []
389388
}
390389

@@ -449,7 +448,7 @@ def generate_variables(self, dict_: dict) -> list:
449448
if d.get('min') is not None:
450449
d2['minValue'] = d['min']
451450
if d.get('units') is not None:
452-
d2['unitCode'] = d['unit']
451+
d2['unitCode'] = d['units']
453452
dict2.append(d2)
454453

455454
return dict2

0 commit comments

Comments
 (0)