diff --git a/db5.sqlite3 b/db5.sqlite3 index 34ff764..abb40eb 100644 Binary files a/db5.sqlite3 and b/db5.sqlite3 differ diff --git a/src/a3 b/src/a3 index 9067f0a..39186c4 100755 Binary files a/src/a3 and b/src/a3 differ diff --git a/src/a3.nim b/src/a3.nim index 37e1623..54e389d 100644 --- a/src/a3.nim +++ b/src/a3.nim @@ -208,8 +208,6 @@ import productName = form.getOrDefault("prod", "") quantity = parseInt(form.getOrDefault("quantity", "0")) - echo productName - var country = form["c_country"] firstName = form["c_fname"] @@ -220,16 +218,12 @@ import email1 = form["c_email_address"] phone = form["c_phone"] password1: string - - echo 3 password1 = form.getOrDefault("password", "") if email != "": productCount = micsCartProductCount(email, password) - echo 4 - if country != "" and firstName != "" and lastName != "" and address != "" and state != "" and zip != "" and email != "" and phone != "": var userId = db.getUserId(email, password) @@ -263,8 +257,6 @@ import ctx.send(sendThankYou()) else: - - echo 5 for a, b in form: if form[a] == "": @@ -278,8 +270,6 @@ import val.mark = "" validity[a] = val - echo productName - if productName == "": var userId = db.getUserId(email, password) @@ -295,11 +285,8 @@ import ca: Cart product.id = 1 - echo product product.name = productName - echo product product.price = db.getPriceByProductName(productName) - echo product ca.quantity = quantity products.add(product) cart.add(ca)