diff --git a/templates/quiz.html b/templates/quiz.html index d83bdd9..0b94b58 100644 --- a/templates/quiz.html +++ b/templates/quiz.html @@ -40,7 +40,7 @@
  • Vocabulary
  • - +
  • Logout
  • diff --git a/wanikaniburned.py b/wanikaniburned.py index 18ea524..d5cbf70 100644 --- a/wanikaniburned.py +++ b/wanikaniburned.py @@ -209,6 +209,12 @@ def logout(): def unauthorized(): return redirect(url_for('show_home')) + +def datetime_format(input): + return input.strftime("%d %B %Y %I:%M%p") + + if __name__ == '__main__': db.create_all() + app.jinja_env.filters['datetime_format'] = datetime_format app.run(threaded=True, port=app.config['PORT'])