-
Notifications
You must be signed in to change notification settings - Fork 0
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
Automatically move donation.purpose to donation.usage #66
Comments
Sample data structure representing a communitycommunity = { Check if the community has "donation.purpose" setif "donation" in community and "purpose" in community["donation"]: Mark the community as validcommunity["valid"] = True Print the updated community dataprint(community) |
If this is a first draft of a PR to fix this, it might help to format this accordingly? |
To automatically move the value from "donation.purpose" to "donation.usage" as you've described in your code, you should add this code within a relevant section of your program where you want this transformation to occur. It depends on the context of your program and when you want this transformation to take place. If you want this transformation to occur whenever you receive new data for the "donation" section, you might want to add it within the part of your code where you handle incoming data for the "donation" section. Sample data structure representing a communitycommunity = { Check if the community has "donation.purpose" setif "donation" in community and "purpose" in community["donation"]: Mark the community as validcommunity["valid"] = True Print the updated community dataprint(community) |
These autogenerated comments in a different coding language, completely unrelated to the existing project do not help. |
Have you idea about this then tell me more details |
If a community has donation.purpose set, it is marked as invalid (which was valid some time)
The generator should update that field to "usage" just as it updates the geodata field.
The text was updated successfully, but these errors were encountered: