diff --git a/app.py b/app.py index 19aeab9..736b75d 100644 --- a/app.py +++ b/app.py @@ -85,6 +85,10 @@ def create_app(test_config=None): elif rate == "No": k = 0.1 submit_card.interest_rate = abs(submit_card.interest_rate*k) + + elif rate == "Delete": + submit_card.interest_rate = 0 + #@TODO to bi lahko zbrisalo tudi file v določenih primerih # zaporedno število trenutnega carda v decku next_card = deck_object.current_card + 1 diff --git a/templates/deck/index.html b/templates/deck/index.html index 96fe1d7..4501c08 100644 --- a/templates/deck/index.html +++ b/templates/deck/index.html @@ -16,6 +16,8 @@ + +