Dict object has no attribute comments

My get_movie is adding comments and also sorting on date descending.
Do I need to do a $push here instead of insert_one?

Delete this problem line:

I still get the same result:

Here’s my get_movie method:

Please edit your post and delete the screenshot of the pipeline. It’s against forum guidelines to post potential answers to labs.

As a reminder, I suggested that you should delete that line but you went ahead and added it to the return statement. Don’t change existing code unless the lab specifically says so.

1 Like

Wow… It passed… Thanks.

Good job :slightly_smiling_face::+1:

By the way, you deleted the wrong screenshot. Please delete the pipeline.