From d4732bcde388204b815cc4c9f2511711adcf70ba Mon Sep 17 00:00:00 2001 From: al6862 Date: Sat, 2 Mar 2024 23:01:32 -0500 Subject: [PATCH 1/4] fixed if statement logic --- app.py | 1 - templates/card.html | 48 +++++++++++++++++++-------------------------- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/app.py b/app.py index 6f3e735..15c6210 100644 --- a/app.py +++ b/app.py @@ -88,7 +88,6 @@ def createDeck(username): # TODO: is there a way to not have to refresh the page and add the new deck return redirect(url_for('allDecks', username=username)) -# since shuffled, maybe should be cardQuestion instead of cardIndex? @app.route("////add", methods=["POST"]) def addCard(username, deckTitle, cardIndex): # authenticate user diff --git a/templates/card.html b/templates/card.html index b867925..69591d9 100644 --- a/templates/card.html +++ b/templates/card.html @@ -7,7 +7,7 @@

{{ deckTitle }}

- +

START

@@ -40,6 +40,7 @@

START

{% endif %} +