summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntanas Uršulis <antanas.ursulis@gmail.com>2013-08-02 10:12:25 +0300
committerAntanas Uršulis <antanas.ursulis@gmail.com>2013-08-02 10:12:25 +0300
commit5c567070fc3a18ae08c7d4b5ffa9af5ae3a72e5e (patch)
treec54748a73d340a7f6e2ee25b662ce376fc132cb7 /flask_app.py
parentGroup list view (diff)
downloadlog-analysis-master.tar.gz
log-analysis-master.tar.bz2
log-analysis-master.zip
Simple file list templateHEADmaster
TODO: it should provide a link to file, instead of printing the path.
Diffstat (limited to 'flask_app.py')
-rw-r--r--flask_app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/flask_app.py b/flask_app.py
index 67b2217..6eeaa0c 100644
--- a/flask_app.py
+++ b/flask_app.py
@@ -27,6 +27,10 @@ def teardown_request(exception):
def index():
return render_template('group_list.html', groups=g.db.get_groups())
+@app.route('/files')
+def file_list():
+ return render_template('file_list.html', files=g.db.get_files())
+
@app.route('/submit', methods=['POST'])
def submit():
submission = submission_pb2.Submission()