Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebHost: Clean up the exported yaml in weighted settings #2167

Merged
merged 2 commits into from
Sep 11, 2023
Merged

WebHost: Clean up the exported yaml in weighted settings #2167

merged 2 commits into from
Sep 11, 2023

Conversation

eldsmith
Copy link
Contributor

What is this fixing or adding?

Clean up exported yaml in weighted settings by removing weighted options in instances where there is only one possible option, in addition removes some empty arrays and empty 'starting_inventory'

How was this tested?

exported a few dozen yamls with variable settings and verified

If this makes graphical changes, please attach screenshots.

Remove options that have only one possible outcome as well as empty arrays, when building yaml.
Copy link
Member

@LegendaryLinux LegendaryLinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@LegendaryLinux LegendaryLinux merged commit 1756a30 into ArchipelagoMW:main Sep 11, 2023
@ThePhar ThePhar added is: refactor/cleanup Improvements to code/output readability or organizization. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Oct 16, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…MW#2167)

* Trim output yaml in weighted options

Remove options that have only one possible outcome as well as empty arrays, when building yaml.

* fix quotes
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…MW#2167)

* Trim output yaml in weighted options

Remove options that have only one possible outcome as well as empty arrays, when building yaml.

* fix quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: refactor/cleanup Improvements to code/output readability or organizization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants