Skip to content

Fix silent failure of metadata export (#178) - #192

Closed
praftery wants to merge 67 commits into
mainfrom
fix-metadata-export-shortrun-weighting-176
Closed

praftery wants to merge 67 commits into
mainfrom
fix-metadata-export-shortrun-weighting-176

Conversation

@praftery

Copy link
Copy Markdown
Contributor

There was a leftover reference to the short/long run weighting (that we removed entirely) and was causing the whole export to drop out from the download

urwahah and others added 30 commits August 12, 2026 16:18
…ion-calc-shortcut-#142-#169

Load selection calc shortcut #142 #169
…port-feature-#176

feat: add metadata export v1
…ion-table-updates

feat: add free text search + sorting to load selection table
urwahah and others added 28 commits September 10, 2026 11:24
…ssions-factors-#52

Average emissions factors #52
…minor-fixes-PR#180

Revert "fix: minor adjustments to PR #180"
…average-emissions-factors-#52

Revert "Average emissions factors #52"
…revert-180-average-emissions-factors-#52

Revert "Revert "Average emissions factors #52""
…-trigger-behavior

Update calc trigger behavior
…ntation-link

fix: move up Docs link in sidebar
…refrigerant-equipment

Additional refrigerant equipment
…-scenarios-displayed-#188

fix: address #188, adjust scen ordering
build_metadata_summary() (added in #178, metadata-export-feature-#176)
accessed scen.shortrun_weighting directly, but that field was removed
from EmissionScenario by the average-emissions-factors-#52 work
(landed via #180, reverted/re-landed through #181-#184). The two
PRs never touched each other's files, so the export code was left
referencing a field that no longer exists.

Since EmissionScenario is a Pydantic model, the missing attribute
raised AttributeError instead of returning None, and that exception
was silently swallowed by the broad except/pass in
_add_metadata_files() (pages/results_page.py) — so settings_summary.txt
and settings.json quietly stopped being included in the results
download zip, with no visible error.

Refs #176

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@t-kramer

Copy link
Copy Markdown
Collaborator

Fixed this with #194

@t-kramer t-kramer closed this Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants