Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def get_product_history(asin):
  2.  
  3. new = db["products"]
  4. try:
  5. find = new.find_one({"asin": asin}, {"_id": 0})
  6. if find:
  7. return find
  8. except Exception as identifier:
  9. print(identifier)
  10. return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement