Skip to content

Commit

Permalink
Merge pull request #47 from bis-med-it/fix_key_error
Browse files Browse the repository at this point in the history
Change favicon and minor bug fixes
  • Loading branch information
osirello committed Dec 5, 2023
2 parents 08bd4a7 + bbcb02f commit ccbf3e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Binary file modified favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,11 +1543,18 @@ async def download_single_chart(data_chart, row: int, pos: int):
}
metadata_codelist = None

try:
valuelist_obj = list(set(list(df[concept]))) if df is not None else None

except Exception as valuelist_err:
print(f"There has been an issue with the metadata. Error{valuelist_err}")
valuelist_obj = None

result = {
"chart_id": chart_id,
"settings": data_chart,
"data": df.to_dict("records") if df is not None else None,
"valuelist": list(set(list(df[concept]))) if df is not None else None,
"valuelist": valuelist_obj,
"metadata_dataflow": metadata_dataflow,
"metadata_codelist": metadata_codelist,
}
Expand Down
Binary file modified src/assets/favicon.ico
Binary file not shown.

0 comments on commit ccbf3e9

Please sign in to comment.