This commit is contained in:
Aritra Banik 2024-04-10 16:17:08 +05:30
parent 8d0bfd6527
commit 861a1a4fbc
3 changed files with 2 additions and 2 deletions

BIN
src/a3

Binary file not shown.

View File

@ -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]

View File

@ -2,7 +2,7 @@ import
mike,
nimja,
../a3pkg/mics,
../a3c/[users, orders]
../a3c/orders
proc admin*(ctx: Context): string=
var