Skip to content

Commit c28d58f

Browse files
author
Nick Heyek
authored
Update api_data_helpers.py
1 parent 6aa4bed commit c28d58f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

experiment-trait-data-visualizer/api_data_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_api_records(endpoint, year, start_month, end_month):
3030

3131
formatted_month = get_formatted_month(month)
3232

33-
payload = {'key':'sS8quPK7nt0ySnTFahzDP9VMlGhBqxIqjUKP6SUx',
33+
payload = {'key':os.environ.get(BETYdbKey),
3434
'date':'~'+ str(year) + '-' + str(formatted_month),
3535
'limit':'none'}
3636

@@ -54,4 +54,4 @@ def get_trait_records(year, start_month, end_month):
5454
return get_api_records('traits', year, start_month, end_month)
5555

5656
def get_management_records(year, start_month, end_month):
57-
return get_api_records('managements', year, start_month, end_month)
57+
return get_api_records('managements', year, start_month, end_month)

0 commit comments

Comments
 (0)