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

Unique identifier of a house is not unique at all #34

Open
BramHillebrand opened this issue Jul 18, 2024 · 1 comment
Open

Unique identifier of a house is not unique at all #34

BramHillebrand opened this issue Jul 18, 2024 · 1 comment
Labels
bug Something isn't working fix available fix available in forked private repository

Comments

@BramHillebrand
Copy link
Contributor

The unique identifier is not unique at all. Something with the @DataClass statement makes it that the base class is actually intialized only once and therefore all properties created in a loop (during same run) will have the same id.

@BramHillebrand
Copy link
Contributor Author

A solution is to move the id setting to a post_init of the house. I dont know if that is the best solution because I dont completely understand why it does not work now.

@BramHillebrand BramHillebrand added bug Something isn't working fix available fix available in forked private repository labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix available fix available in forked private repository
Projects
None yet
Development

No branches or pull requests

1 participant