Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement