Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 280f778e8eb407dff8eb06640010d414d332c262 1 parent 229428c
@mitsuhiko authored
View
8 feedback.py
@@ -14,9 +14,9 @@
from datetime import datetime
from random import SystemRandom
-from flask import Flask, render_template, session, flash, request, \
+from flask import Flask, render_template, session, request, \
url_for, redirect, Response, jsonify
-from flaskext.sqlalchemy import SQLAlchemy, Pagination
+from flaskext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
@@ -151,7 +151,3 @@ def export_json(version):
q = q.filter_by(version=version)
messages = q.order_by(Feedback.pub_date).all()
return jsonify(messages=[fb.to_json() for fb in messages])
-
-
-if __name__ == '__main__':
- app.run()
View
BIN  static/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
9 templates/layout.html
@@ -17,15 +17,6 @@
{%- endfor %}
</ul>
</div>
- {%- with messages = get_flashed_messages() %}
- {%- if messages %}
- <ul class=messages>
- {%- for message in messages %}
- <li>{{ message }}
- {%- endfor %}
- </ul>
- {%- endif %}
- {%- endwith %}
<div class=body>{% block body %}{% endblock %}</div>
<div class=footer>
<p>
Please sign in to comment.
Something went wrong with that request. Please try again.