Getting an attribute error while inserting list-of-lists data into a MongoDB database using Mongoz #48
-
I'm encountering an issue while trying to insert student scores in a nested array format [['202405', 85.45], ['202406', 90.14]] class implementation
I expect the student document to be inserted with the scores data in the specified format, Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@prashikdewtale10 sorry for taking some time but maybe you are having something internally not declared properly? So, I literally used your example as a test here https://github.com/dymmond/mongoz/blob/main/tests/models/manager/test_array_insert.py and it is passing without any issues. Another thing aside, I saw your profile and it looks great. I saw your readme and you are using Esmerald in your example and that makes us very very very happy. Thank you so much for the support. |
Beta Was this translation helpful? Give feedback.
-
@prashikdewtale10 apologies, I was able to replicate! Nice catch, it was an internal issue when converting decimals checking for lists. The latest version |
Beta Was this translation helpful? Give feedback.
-
@prashikdewtale10 is it solved? Btw. What do you think of Esmerald? |
Beta Was this translation helpful? Give feedback.
Thank you so much for the support and thank you for quick release.