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

Random error when prefetching models #1381

Open
cadlagtrader opened this issue Jul 13, 2024 · 1 comment · May be fixed by #1382
Open

Random error when prefetching models #1381

cadlagtrader opened this issue Jul 13, 2024 · 1 comment · May be fixed by #1382
Labels
bug Something isn't working

Comments

@cadlagtrader
Copy link

cadlagtrader commented Jul 13, 2024

Describe the bug
I am seeing random errors when prefetching a model with ormar 0.20.1
Identified the bug in translate_list_to_dict using a dict as a default argument

To Reproduce
translate_list_to_dict(["aa", "aa__inner", "bb"], default={})

Expected behavior
ret = {"aa": {"inner": {}}, "bb": {}}

@cadlagtrader cadlagtrader added the bug Something isn't working label Jul 13, 2024
@cadlagtrader
Copy link
Author

cadlagtrader commented Jul 13, 2024

#1382

@cadlagtrader cadlagtrader linked a pull request Jul 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant