From daa518794d0d968d9eb73aa5c5174226d790e8cf Mon Sep 17 00:00:00 2001 From: mdivecky Date: Sat, 25 Feb 2023 18:25:40 +0100 Subject: [PATCH] comment out old func. testing --- main.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/main.py b/main.py index 413fe10..9480330 100644 --- a/main.py +++ b/main.py @@ -83,24 +83,24 @@ def prod_by_barcode(barcode): -def main(): - # Get product - prod = prod_by_barcode(BARCODE) - # print(prod) - # It would be good to check if the product is available here. In such case, throw some error and prompt for user action (write it on paper and report to staff) +# def main(): +# # Get product +# prod = prod_by_barcode(BARCODE) +# # print(prod) +# # It would be good to check if the product is available here. In such case, throw some error and prompt for user action (write it on paper and report to staff) - # Find user - user = user_by_barid(USER_BAR_ID) - # print(user) +# # Find user +# user = user_by_barid(USER_BAR_ID) +# # print(user) - # Consume product - prod_consume(prod) +# # Consume product +# prod_consume(prod) - # Bill product to user - #prod_bill_user(prod, user) +# # Bill product to user +# #prod_bill_user(prod, user) - # Bill product with cash - prod_bill_cash(prod) +# # Bill product with cash +# prod_bill_cash(prod) app = Flask(__name__)