Skip to content

Commit afdc793

Browse files
committed
get_meta_station bug fix datastream_id to station_id
1 parent ebbf277 commit afdc793

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dendra_api_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ def get_meta_datastream_by_id(datastream_id,query_add = ''):
188188
return rjson['data'][0]
189189

190190
def get_meta_station_by_id(station_id,query_add = ''):
191-
if(type(datastream_id) is not str):
192-
return 'INVALID DATASTREAM_ID (bad type)'
193-
if(len(datastream_id) != 24):
194-
return 'INVALID DATASTREAM_ID (wrong length)'
191+
if(type(station_id) is not str):
192+
return 'INVALID station_id (bad type)'
193+
if(len(station_id) != 24):
194+
return 'INVALID station_id (wrong length)'
195195
query = { '_id': station_id }
196196
if(query_add != ''):
197197
query.update(query_add)

0 commit comments

Comments
 (0)