From 0be5531afdb143b5785309e8dd47218f6ac58de3 Mon Sep 17 00:00:00 2001 From: alexalmeida2001 <47391414+alexalmeida2001@users.noreply.github.com> Date: Sat, 5 Dec 2020 19:22:27 +0000 Subject: [PATCH] Update appUPDATED-alex.py --- appUPDATED-alex.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appUPDATED-alex.py b/appUPDATED-alex.py index 968b447..6a07279 100644 --- a/appUPDATED-alex.py +++ b/appUPDATED-alex.py @@ -67,7 +67,10 @@ def client(): client_interface_view = "\nselecione um filme ou pressione zero para saĆ­r " while (client_input_view := input(client_interface_view)) !='0': if client_input_view != '0': + print("id name, actorid, director, imdbrating, genre, price, year, timeavaible, type") moviename=database.view_movieinfo(client_input_view) + if moviename==0: + break client_input_view_buy =input ("press 1 to buy press 0 to leave\n") if client_input_view_buy == '1': client_input_view_buy=input("are you sure you want to buy?\n(press 1 yes press 0 no)") @@ -85,7 +88,8 @@ def client(): database.view_saldo(email) else: print("nao tem saldo suficiente") - + if client_input == '4': + database.view_rent(email)