Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
production
building-knowledge-centre
building-dao
Commits
7095a345
Commit
7095a345
authored
Sep 26, 2019
by
Marc-Andre Santune
Browse files
add upload_metadata for building
parent
d937afde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
building_dao/building_generic.py
building_dao/building_generic.py
+9
-0
No files found.
building_dao/building_generic.py
View file @
7095a345
...
...
@@ -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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment