106
This commit is contained in:
parent
8d0bfd6527
commit
861a1a4fbc
@ -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]
|
||||
|
@ -2,7 +2,7 @@ import
|
||||
mike,
|
||||
nimja,
|
||||
../a3pkg/mics,
|
||||
../a3c/[users, orders]
|
||||
../a3c/orders
|
||||
|
||||
proc admin*(ctx: Context): string=
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user