title: Trying to call a flask function with parameters from html
body: <p>So Im calling a flask function which takes one parameter check from my html code, im getting the error: TypeError: categories_html() missing 1 required positional argument: 'check'.</p>
  
  <p>Heres my Python code:</p>
  
  <pre><code>app.route('/cat_html', methods=['GET'])
  def categories_html(check):
      if session.get('teacher_name'):
          return trav0.gen(check)
  
      else:
          return redirect('/teachers')
  </code></pre>
  
  <p>And then here is the html call:</p>
  
  <pre><code>&lt;li class="nav-item"&gt;
      &lt;a class="navbar-brand" href="{{ url_for('categories_html', check='sta10') }}" target="_blank" style="color:31708f;"&gt;Tasks&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>So trav0.gen generates a html, check is simply equal to a number, depending on the number a different html is generated.</p>