Skip to content

Commit

Permalink
Fix abbreviations in process view
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Oct 18, 2024
1 parent 8b272ca commit d694c98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project tries to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- abbreviations in process view

## [0.9.0] - 2024-10-18
### Changed
- UI design
Expand Down
4 changes: 2 additions & 2 deletions django_energysystem_viewer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_context_data(self, **kwargs):
context["banner_data"] = collection_name
structure_name = self.request.GET.get("structure")
context["structure_name"] = structure_name
abbreviations = get_excel_data(structure_name, "abbreviations")
abbreviations = get_excel_data("SEDOS-structure-all", "abbreviations")
context["abbreviation_list"] = abbreviations["abbreviations"].unique()
return context

Expand All @@ -222,7 +222,7 @@ def get_context_data(self, **kwargs):

structure_name = self.request.GET.get("structure")
context["structure_name"] = structure_name
abbreviations = get_excel_data(structure_name, "abbreviations")
abbreviations = get_excel_data("SEDOS-structure-all", "abbreviations")
context["abbreviation_list"] = abbreviations["abbreviations"].unique()

# If specific artifact is queried
Expand Down

0 comments on commit d694c98

Please sign in to comment.