Skip to content

Commit

Permalink
Merge pull request #3173 from SEED-platform/better-server-url
Browse files Browse the repository at this point in the history
Update display of BETTER host configuration
  • Loading branch information
nllong committed Mar 18, 2022
2 parents b820cad + 90cc80d commit aaab564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion seed/static/seed/partials/organization_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h3 translate>BETTER Analysis API Key</h3>
<form class="form-horizontal" role="form">
<div class="form-group">
<div class="col-sm-4">
<p>Please refer to the <a href="https://better.lbl.gov/docs/api/" target="_blank" rel="noopener noreferrer">BETTER documentation</a> to learn how to get an API key. Note, do not prefix the token with "Token ", only include the token itself.</p>
<p>Please refer to the <a href="{$ org.better_host_url $}/docs/api/" target="_blank" rel="noopener noreferrer">BETTER documentation</a> to learn how to get an API key. Note, do not prefix the token with "Token ", only include the token itself. BETTER host is configured to be {$ org.better_host_url $}.</p>
<input type="text" class="form-control" ng-model="org.better_analysis_api_key" ng-disabled="::!auth.requires_owner">
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions seed/views/v3/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def _dict_org(request, organizations):
'mapquest_api_key': o.mapquest_api_key or '',
'geocoding_enabled': o.geocoding_enabled,
'better_analysis_api_key': o.better_analysis_api_key or '',
'better_host_url': settings.BETTER_HOST,
'property_display_field': o.property_display_field,
'taxlot_display_field': o.taxlot_display_field,
'display_meter_units': o.display_meter_units,
Expand Down

0 comments on commit aaab564

Please sign in to comment.