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
9acd8d5d
Commit
9acd8d5d
authored
Oct 19, 2020
by
unknown
Browse files
add get and upload altitudes routes
parent
122eeb17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
building_dao/building_generic.py
building_dao/building_generic.py
+8
-0
No files found.
building_dao/building_generic.py
View file @
9acd8d5d
...
...
@@ -115,6 +115,14 @@ class BuildingGeneric:
"post"
,
"/"
.
join
([
self
.
settings
.
base_url
,
self
.
_uid
,
"metadata"
,
name
]),
json
=
body
,
)
def
get_altitudes
(
self
):
"""Retrieve the building and exterior altitudes from Hbase"""
return
self
.
_req_with_retries
(
"get"
,
"/"
.
join
([
self
.
settings
.
base_url
,
self
.
_uid
,
"altitudes"
]))
def
upload_altitudes
(
self
,
payload
:
dict
):
"""Upload the building and exterior altitudes to Hbase"""
return
self
.
_req_with_retries
(
"put"
,
"/"
.
join
([
self
.
settings
.
base_url
,
self
.
_uid
,
"altitudes"
]),
json
=
payload
)
# ----------------- 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