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

Prevent crash if multiple YAML files share the same dashid #10

Open
Olivier-Sirello_bis mannequin opened this issue Sep 11, 2023 · 0 comments
Open

Prevent crash if multiple YAML files share the same dashid #10

Olivier-Sirello_bis mannequin opened this issue Sep 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Olivier-Sirello_bis
Copy link
Mannequin

Olivier-Sirello_bis mannequin commented Sep 11, 2023

If multiple YAML files share the same ID, load_yaml() won't return the correct results and fails.
Need to print an error in the log or, better, a warning by taking the first (alphabetical) file

if dash_id_url != "/": yaml_location = ''.join([d["location"] for d in yaml_files if d['dash_id'] == dash_id_url_s]) return yaml_location

@Olivier-Sirello_bis Olivier-Sirello_bis mannequin added the enhancement New feature or request label Sep 11, 2023
@stephprobst stephprobst transferred this issue from another repository Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants