Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def get_product_history(asin):
new = db["products"]
try:
find = new.find_one({"asin": asin}, {"_id": 0})
if find:
return find
except Exception as identifier:
print(identifier)
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment