-
Notifications
You must be signed in to change notification settings - Fork 3
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
[DAG météo FTP] sort resources if new ones have been added #381
base: main
Are you sure you want to change the base?
Conversation
Pierlou
commented
Jan 8, 2025
•
edited
Loading
edited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see what would go wrong, it does seem to makes sense
if len(sorted_ids) != len(resources): | ||
raise ValueError("The sorted list has a different number of elements, aborting") | ||
if len(sorted_ids) != len(set(r["id"] for r in sorted_ids)): | ||
raise ValueError("An id has been duplicated in the sort process", resources, "vs", sorted_ids) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏