This commit is contained in:
vanzhiganov 2017-09-22 00:20:22 +03:00
parent 9c2398bc40
commit 7e2883bd03

View file

@ -11,7 +11,7 @@ from jinja2 import TemplateNotFound
from wotstats.openid import oid
from wotstats.database import db
from wotstats.models import *
from wotstats.tasks import get_stats
# from wotstats.tasks import get_stats
pages_home = Blueprint('pages_home', __name__, template_folder='templates')
@ -65,7 +65,7 @@ def create_profile():
@pages_home.route('/create-profile', methods=['POST'])
def create_profile():
def create_profile_post():
if g.user is not None or 'openid' not in session:
return redirect(url_for('pages_home.index'))