Skip to content

Commit 5679ba2

Browse files
committed
Finalize database connection
1 parent a389b11 commit 5679ba2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

windpowerlib/wind_turbine.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,10 @@ def load_turbine_data_from_oedb():
318318
# location of data
319319
schema = 'model_draft'
320320
table = 'openfred_windpower_powercurve'
321-
# column = 'column=id&column=version'
322-
# orderby = 'order_by=version'
323-
324321
# load data
325-
# result = rq.get(oep_url + '/api/v0/schema/' + schema +
326-
# '/tables/' + table + '/rows/?', )
327-
result = rq.get(oep_url + '/api/v0/schema/' + schema +
328-
'/tables/' + table + '/rows/?', verify=False, ) # todo: after SSL certificate renewed: verify = True
322+
result = rq.get(
323+
oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
324+
schema, table), )
329325
if result.status_code == 200:
330326
logging.info("Data base connection successful.")
331327
else:

0 commit comments

Comments
 (0)