Replies: 1 comment
-
I've submitted a fix in #997 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hi @tiangolo , thanks for sqlmodel.
Related to PR #804
When I tried to update my existing db object which is hero and its
related_id
,owner_id
fields I encountered RuntimeError: dictionary changed size during iteration. In the sqlmodel_update function The following part is manipulates the dictionary use_update. That's needed to be fixed I think.Instead of
value = use_update.pop(remaining_key)
we can use updatevalue = update.pop(remaining_key)
Operating System
macOS
Operating System Details
Mac Os M2
SQLModel Version
0.0.16
Python Version
3.10.14
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions