Created
February 8, 2020 07:56
-
-
Save prakashthegyan/dbbbe65511ee11fb7dc476d5519e1467 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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