From f43c089b95fa4595e7f804004889b267ee7658e2 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Mon, 5 Oct 2015 12:29:31 +0100 Subject: [PATCH] Changed logout href to a flask generated url. Removed unused imports. --- templates/quiz.html | 4 ++-- wanikaniburned.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/quiz.html b/templates/quiz.html index 6dfaad3..bd8f25e 100644 --- a/templates/quiz.html +++ b/templates/quiz.html @@ -29,7 +29,7 @@ -
  • Logout
  • +
  • Logout
  • @@ -40,7 +40,7 @@
    - +
    diff --git a/wanikaniburned.py b/wanikaniburned.py index 7e73e8a..1658c55 100644 --- a/wanikaniburned.py +++ b/wanikaniburned.py @@ -1,6 +1,5 @@ import json -import random -from flask import Flask, render_template, redirect, url_for, jsonify, flash, Response +from flask import Flask, render_template, redirect, url_for, jsonify, flash from flask.ext.login import LoginManager, login_user, login_required, current_user, logout_user, login_fresh from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.wtf import Form