From f15a59b0d686778b19351d64328109b5da5d7ad9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 14 Jan 2016 11:12:03 +0000 Subject: [PATCH] =?UTF-8?q?Use=20=F0=9F=90=8D=20case=20in=20function=20nam?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main/views/choose_service.py | 2 +- app/main/views/two_factor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/choose_service.py b/app/main/views/choose_service.py index fdb0deedb..e1f874448 100644 --- a/app/main/views/choose_service.py +++ b/app/main/views/choose_service.py @@ -5,5 +5,5 @@ from app.main import main @main.route("/services") @login_required -def chooseservice(): +def choose_service(): return render_template('views/choose-service.html') diff --git a/app/main/views/two_factor.py b/app/main/views/two_factor.py index 77bab9c00..82b828391 100644 --- a/app/main/views/two_factor.py +++ b/app/main/views/two_factor.py @@ -19,6 +19,6 @@ def two_factor(): if form.validate_on_submit(): verify_codes_dao.use_code_for_user_and_type(user_id=user.id, code_type='sms') login_user(user) - return redirect(url_for('.chooseservice')) + return redirect(url_for('.choose_service')) return render_template('views/two-factor.html', form=form)