Tuesday, 10 September 2013

Why record disappear when I update() it after using find_one?

Why record disappear when I update() it after using find_one?

here is my code:
temp = haha.find_one({"fname" : name })
haha.update({"fname" : name } , {"time" : now()})
then the record "temp" disappear in the database,I was really confusing...

No comments:

Post a Comment