Skip to content

Instantly share code, notes, and snippets.

@prakashthegyan
Created February 8, 2020 07:56
Show Gist options
  • Save prakashthegyan/dbbbe65511ee11fb7dc476d5519e1467 to your computer and use it in GitHub Desktop.
Save prakashthegyan/dbbbe65511ee11fb7dc476d5519e1467 to your computer and use it in GitHub Desktop.
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