@marshal_with(user_fields)
def put(self, id):
    user = User.query.filter_by(uuid=id).first()
    if (user is None):
        api.abort(404, 'User does not exist.')
    args = self.user_put_reqparser.parse_args()
    user.status = args['status']
    db.session.commit()
    if (args['status'] == 'covid_positive'):
        self._submit_filtering_jobs(user.uuid)
    return (user, 200)
@marshal_with(user_fields)
def put(self, id):
    user = User.query.filter_by(uuid=id).first()
    if (user is None):
        api.abort(404, 'User does not exist.')
    args = self.user_put_reqparser.parse_args()
    user.status = args['status']
    db.session.commit()
    if (args['status'] == 'covid_positive'):
        self._submit_filtering_jobs(user.uuid)
    return (user, 200)