Skip to content

Commit

Permalink
Merge pull request #213 from agoenergy/context_data_fixes
Browse files Browse the repository at this point in the history
include updates related to context data links and style
  • Loading branch information
markushal authored Dec 14, 2023
2 parents c7d31c2 + 636275b commit 6f088df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/context_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ def _insert_clickable_references(context_data):
"supply",
]:
for ref, link in links.items():
df = context_data[sheet]
for col in df.columns:
df[col] = df[col].astype("string").str.replace(ref, link)
if isinstance(link, str):
df = context_data[sheet]
for col in df.columns:
df[col] = df[col].astype(str).str.replace(ref, link)

cd_new[sheet] = df

Expand Down
Binary file modified data/context_data.xlsx
Binary file not shown.

0 comments on commit 6f088df

Please sign in to comment.