diff --git a/webcompat/form.py b/webcompat/form.py index 17d0f04c6..320720d74 100644 --- a/webcompat/form.py +++ b/webcompat/form.py @@ -22,7 +22,6 @@ from flask_wtf.file import FileField from markupsafe import Markup from wtforms import HiddenField -from wtforms import Label from wtforms import RadioField from wtforms import StringField from wtforms import TextAreaField @@ -38,8 +37,6 @@ from webcompat.helpers import get_details_list from webcompat.helpers import is_json_object -AUTH_REPORT = 'github-auth-report' -PROXY_REPORT = 'github-proxy-report' SCHEMES = ('http://', 'https://') BAD_SCHEMES = ('http:/', 'https:/', 'http:', 'https:') GITHUB_HELP = '_From [webcompat.com](https://webcompat.com/) with ❤️_' diff --git a/webcompat/helpers.py b/webcompat/helpers.py index 5c29007dc..3dddcd7c1 100644 --- a/webcompat/helpers.py +++ b/webcompat/helpers.py @@ -28,7 +28,6 @@ import requests from ua_parser import user_agent_parser -from webcompat import api from webcompat import app from webcompat import github diff --git a/webcompat/views.py b/webcompat/views.py index 86b3d3519..576546f6d 100644 --- a/webcompat/views.py +++ b/webcompat/views.py @@ -24,10 +24,8 @@ from webcompat.api.endpoints import proxy_issue from webcompat.db import session_db from webcompat.db import User -from webcompat.form import AUTH_REPORT from webcompat.form import get_form from webcompat.form import FormWizard -from webcompat.form import PROXY_REPORT from webcompat.form import normalize_url from webcompat.helpers import ab_active from webcompat.helpers import ab_current_experiments @@ -305,7 +303,7 @@ def create_issue(): msg = app.config['IS_DARKNET_DOMAIN'].format(form['url']) flash(msg, 'notimeout') return redirect(url_for('index')) - if form.get('submit_type') == PROXY_REPORT: + if form.get('submit_type') == 'github-proxy-report': if not app.config['ANONYMOUS_REPORTING_ENABLED']: abort(400) # Checking blocked domains @@ -319,7 +317,7 @@ def create_issue(): return redirect( url_for('show_issue', number=json_response.get('number'))) # Authenticated reporting - if form.get('submit_type') == AUTH_REPORT: + if form.get('submit_type') == 'github-auth-report': if g.user: # If you're already authed, submit the bug. json_response = report_issue(form) session['show_thanks'] = True