diff --git a/src/a3 b/src/a3 index b9604f1..93d91ae 100755 Binary files a/src/a3 and b/src/a3 differ diff --git a/src/a3c/users.nim b/src/a3c/users.nim index a7e8c20..2e7684b 100644 --- a/src/a3c/users.nim +++ b/src/a3c/users.nim @@ -64,7 +64,7 @@ proc getUserOrdersAmount*(db: DbConn, userId: int): (int, float)= row = db.getAllRows(sql"SELECT * FROM orders WHERE user_id=?", userId) totalQuantity = 0 totalPrice = 0.0 - echo row + # echo row for b, c in row: var quantity = c[8] diff --git a/src/a3d/admin.nim b/src/a3d/admin.nim index d953b80..a653c51 100644 --- a/src/a3d/admin.nim +++ b/src/a3d/admin.nim @@ -2,7 +2,7 @@ import mike, nimja, ../a3pkg/mics, - ../a3c/[users, orders] + ../a3c/orders proc admin*(ctx: Context): string= var