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)
|
row = db.getAllRows(sql"SELECT * FROM orders WHERE user_id=?", userId)
|
||||||
totalQuantity = 0
|
totalQuantity = 0
|
||||||
totalPrice = 0.0
|
totalPrice = 0.0
|
||||||
echo row
|
# echo row
|
||||||
for b, c in row:
|
for b, c in row:
|
||||||
var
|
var
|
||||||
quantity = c[8]
|
quantity = c[8]
|
||||||
|
@ -2,7 +2,7 @@ import
|
|||||||
mike,
|
mike,
|
||||||
nimja,
|
nimja,
|
||||||
../a3pkg/mics,
|
../a3pkg/mics,
|
||||||
../a3c/[users, orders]
|
../a3c/orders
|
||||||
|
|
||||||
proc admin*(ctx: Context): string=
|
proc admin*(ctx: Context): string=
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user