Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/providers/nrel/access.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# URDB Access & Credentials
# URDB Access & Credentials

## Obtaining Access

Expand All @@ -18,4 +18,4 @@ OPENEI_API_KEY=<your key goes here>
```

!!! warning "Important"
Make sure to add `.env` to your `.gitignore` file to avoid accidentally committing your credentials to version control.
Make sure to add `.env` to your `.gitignore` file to avoid accidentally committing your credentials to version control.
4 changes: 2 additions & 2 deletions tariff_fetch/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def fmt_number(value: float | int | None) -> str:
return f"{value:,.0f}"

header = questionary.Choice(
"Utility Name | Entity Type | Sales (MWh) | Revenue ($) | Customers",
"Utility Name | Entity Type | Sales (MWh) | Revenue ($) | Customers",
value=0,
)

def build_choice(row: dict) -> questionary.Choice:
name_col = f"{row['utility_name']:<44}"
entity_type = f"{(row['entity_type'] or '-')[:18]:<18}"
sales_col = f"{fmt_number(row.get('sales_mwh')):>12}"
revenue_col = f"{fmt_number(row.get('sales_revenue')):>11}"
revenue_col = f"{fmt_number(row.get('sales_revenue')):>14}"
customers_col = f"{fmt_number(row.get('customers')):>9}"
title = f"{name_col} | {entity_type} | {sales_col} | {revenue_col} | {customers_col}"
return questionary.Choice(
Expand Down