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
4db8f648
Commit
4db8f648
authored
Oct 22, 2019
by
Marc-Andre Santune
Browse files
passing kwargs to _req_with_retries
parent
14a78200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
building_dao/building_generic.py
building_dao/building_generic.py
+1
-2
No files found.
building_dao/building_generic.py
View file @
4db8f648
...
...
@@ -51,7 +51,6 @@ class BuildingGeneric:
Eg: get all buildings having given centroids
"""
buildings
=
self
.
_req_with_retries
(
"get"
,
self
.
settings
.
base_url
,
**
kwargs
)
return
buildings
...
...
@@ -251,7 +250,7 @@ class BuildingGeneric:
**
kwargs
):
"""Request method. Retry if it failed"""
res
=
self
.
_req
(
method
=
method
,
url
=
url
,
json
=
json
,
headers
=
headers
)
res
=
self
.
_req
(
method
=
method
,
url
=
url
,
json
=
json
,
headers
=
headers
,
**
kwargs
)
return
res
def
_req
(
...
...
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