comment out old func. testing

This commit is contained in:
Matěj Divecký 2023-02-25 18:25:40 +01:00
parent dd06598f30
commit daa518794d

28
main.py
View file

@ -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__)