コード例 #1
0
 def _update_story(story_id, updated_param_dict):
     Logger(__name__).info('Updating story {} with value {}'.format(
         story_id, updated_param_dict))
     return Persistence.update_one(Story._get_coll(),
                                   {'_id': ObjectId(story_id)},
                                   updated_param_dict)
コード例 #2
0
 def _update_user_by_username(username, updated_param_dict):
     Logger(__name__).info('Updating user {} with value {}'.format(
         username, updated_param_dict))
     return Persistence.update_one(User._get_coll(), {'username': username},
                                   updated_param_dict)