Skip to content

Commit

Permalink
Issue webcompat#1193. cleanup: alphabetize imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor authored and deepthivenkat committed Oct 19, 2016
1 parent 4846c6b commit 38f866e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions webcompat/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import random
import urlparse

from flask_wtf.file import FileField
from flask_wtf.file import FileAllowed
from flask_wtf import Form
from flask_wtf.file import FileAllowed
from flask_wtf.file import FileField
from wtforms import RadioField
from wtforms import StringField
from wtforms import TextAreaField
Expand Down
11 changes: 6 additions & 5 deletions webcompat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
from flask import redirect
from flask import render_template
from flask import request
from flask import session
from flask import send_from_directory
from flask import session
from flask import url_for

from form import AUTH_REPORT
from form import IssueForm
from form import PROXY_REPORT
Expand All @@ -25,15 +26,14 @@
from helpers import get_os
from helpers import get_referer
from helpers import get_user_info
from helpers import thanks_page
from helpers import set_referer
from helpers import thanks_page
from issues import report_issue
from webcompat.db import session_db
from webcompat.db import User

from webcompat import app
from webcompat import github
from webcompat.api.endpoints import get_rate_limit
from webcompat.db import User
from webcompat.db import session_db


@app.teardown_appcontext
Expand Down Expand Up @@ -258,6 +258,7 @@ def show_rate_limit():
return (render_template('ratelimit.txt', rl=rl), 200,
{"content-type": "text/plain"})


if app.config['LOCALHOST']:
@app.route('/uploads/<path:filename>')
def download_file(filename):
Expand Down

0 comments on commit 38f866e

Please sign in to comment.