mirror of
https://github.com/vale981/dirkules
synced 2025-03-05 09:21:38 -05:00
small views update
This commit is contained in:
parent
e27ce778f6
commit
44fc32bd4f
1 changed files with 2 additions and 4 deletions
|
@ -28,14 +28,12 @@ def index():
|
||||||
|
|
||||||
@app.route('/drives', methods=['GET'])
|
@app.route('/drives', methods=['GET'])
|
||||||
def drives():
|
def drives():
|
||||||
drives = Drive.query.all()
|
return render_template('drives.html', drives=Drive.query.all())
|
||||||
return render_template('drives.html', drives=drives)
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/pools', methods=['GET'])
|
@app.route('/pools', methods=['GET'])
|
||||||
def pools():
|
def pools():
|
||||||
pools = Pool.query.all()
|
return render_template('pools.html', pools=Pool.query.all())
|
||||||
return render_template('pools.html', pools=pools)
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/pool/<pool>', methods=['GET'])
|
@app.route('/pool/<pool>', methods=['GET'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue