From c6199441f4ab8203f11e79c59a636294a6b3eca2 Mon Sep 17 00:00:00 2001 From: duongban Date: Fri, 25 Jun 2021 19:31:31 +0700 Subject: [PATCH 1/3] Remove commented portions --- templates/memorize_know.html | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/templates/memorize_know.html b/templates/memorize_know.html index 128e1af..42c0269 100644 --- a/templates/memorize_know.html +++ b/templates/memorize_know.html @@ -14,17 +14,6 @@
-
@@ -55,17 +44,6 @@
-
From ce53e8b3c93dadd39c7e85f39b59af03dabd5f60 Mon Sep 17 00:00:00 2001 From: duongban Date: Fri, 25 Jun 2021 19:38:41 +0700 Subject: [PATCH 2/3] fix wrong grammars --- flash_cards.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flash_cards.py b/flash_cards.py index 812f5f9..36edb2c 100644 --- a/flash_cards.py +++ b/flash_cards.py @@ -204,9 +204,9 @@ def memorize_know(card_type, card_id=None): if card_id: card = get_card_by_id(card_id) else: - card = get_card_already_know(card_type) + card = get_card_already_known(card_type) if not card: - flash("You hasn't learned any '" + tag[1] + "' cards yet.") + flash("You haven't learned any '" + tag[1] + "' cards yet.") return redirect(url_for('show')) short_answer = (len(card['back']) < 75) tags = getAllTag() @@ -442,7 +442,7 @@ def handle_old_schema(): create_tag_table() init_tag() -def get_card_already_know(type): +def get_card_already_known(type): db = get_db() query = ''' From 4139d7f3157efd32d4b48b26ddf07550ba16feb6 Mon Sep 17 00:00:00 2001 From: duongban Date: Fri, 25 Jun 2021 19:45:31 +0700 Subject: [PATCH 3/3] Update text on the link memorize_know --- templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/layout.html b/templates/layout.html index da854bf..dd6df82 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -29,7 +29,7 @@
  • list database
  • create database
  • memorize
  • -
  • memorize know
  • +
  • memorize known items
  •     
  • log out
  • {% endif %}