Commit 7095a345 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

add upload_metadata for building

parent d937afde
......@@ -67,6 +67,15 @@ class BuildingGeneric:
payload = {"error_code": error_code}
return self._req(method="put", url=url, json=payload)
def upload_metadata_for_building(self, name: str, payload: dict):
"""Upload the facade metadata to Hbase"""
body = {"metadata": payload}
self._req_with_retries(
"post",
join(self.settings.base_url, self._uid, "metadata", name),
json=body,
)
# ----------------- Roof level ---------------------
def get_roof_image_by_name(self, image_name: str) -> str:
"""Get roof image"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment