MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / index

Function index

Crud_in_flask/main.py:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81@app.route('/')
82def index():
83 conn = get_db_connection()
84 products = conn.execute('SELECT * FROM products').fetchall()
85 conn.close()
86 return render_template('index.html', products=products)

Callers

nothing calls this directly

Calls 1

get_db_connectionFunction · 0.85

Tested by

no test coverage detected