aboutsummaryrefslogtreecommitdiff
path: root/runserver.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-01 22:57:15 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-01 22:57:15 +0200
commit854862e1c73bf0c521e08b8973721e8be7aeb82e (patch)
tree7f976931e7c9f121a5fe6791e61bb531ac401e72 /runserver.py
parentAdded customized-bootstrap.css file. (diff)
downloadnewspipe-854862e1c73bf0c521e08b8973721e8be7aeb82e.tar.gz
newspipe-854862e1c73bf0c521e08b8973721e8be7aeb82e.tar.bz2
newspipe-854862e1c73bf0c521e08b8973721e8be7aeb82e.zip
Bugfix.
Diffstat (limited to 'runserver.py')
-rwxr-xr-xrunserver.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/runserver.py b/runserver.py
index 156ae320..db1c4410 100755
--- a/runserver.py
+++ b/runserver.py
@@ -27,15 +27,6 @@ if conf.ON_HEROKU:
from flask_sslify import SSLify
SSLify(application)
-ALLOWED_EXTENSIONS = set(['xml', 'opml', 'json'])
-
-def allowed_file(filename):
- """
- Check if the uploaded file is allowed.
- """
- return '.' in filename and \
- filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS
-
babel = Babel(application)
# Jinja filters
@@ -54,7 +45,6 @@ with application.app_context():
populate_g()
g.api = Api(application, prefix='/api/v2.0')
g.babel = babel
- g.allowed_file = allowed_file
from pyaggr3g470r import views
application.register_blueprint(views.articles_bp)
bgstack15