title: How to update row using Flask-SQLAlchemy?
body: <p>I have a model:</p>
  
  <pre><code>class Announcements(db.Model):
      id = db.Column(db.Integer, primary_key=True)
      name = db.Column(db.String(150), nullable=False)
      text = db.Column(db.Text(), nullable=False)
      category = db.Column(db.Integer(), nullable=False)
      subcategory = db.Column(db.Integer(), nullable=False)
      offer_type = db.Column(db.Integer(), nullable=False)
      url = db.Column(db.String(150), nullable=True)
      status = db.Column(db.Integer(), nullable=False)
  
      def __repr__(self):
          return '&lt;Announcement %r&gt;' % self.name
  </code></pre>
  
  <p>And public function:</p>
  
  <pre><code>def update(id):
     // UPDATE HERE
  </code></pre>
  
  <p>How to update note by passed <code>id</code> in function <code>update()</code> using Flask-SQLAlchemy?</p>
  
  <p>I dont see any examples of updating rows in <a href="http://flask-sqlalchemy.pocoo.org/2.3/" rel="nofollow noreferrer">documentation</a></p>