diff options
author | Antanas Uršulis <antanas.ursulis@gmail.com> | 2013-08-02 10:12:25 +0300 |
---|---|---|
committer | Antanas Uršulis <antanas.ursulis@gmail.com> | 2013-08-02 10:12:25 +0300 |
commit | 5c567070fc3a18ae08c7d4b5ffa9af5ae3a72e5e (patch) | |
tree | c54748a73d340a7f6e2ee25b662ce376fc132cb7 /flask_app.py | |
parent | Group list view (diff) | |
download | log-analysis-master.tar.gz log-analysis-master.tar.bz2 log-analysis-master.zip |
TODO: it should provide a link to file, instead of printing the path.
Diffstat (limited to 'flask_app.py')
-rw-r--r-- | flask_app.py | 4 |
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() |