Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from bson.objectid import ObjectId
post_id=final.inserted_ids[0]
def parser(post_id):
document = table.find_one({'_id': ObjectId(post_id)})
return document
parser(post_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment