This commit is contained in:
cereci5049 2024-04-14 01:27:18 +05:30
parent f349e38fd5
commit 841a7ae1f0
3 changed files with 4 additions and 5 deletions

BIN
src/a3

Binary file not shown.

View File

@ -216,7 +216,7 @@
<span class="menu-title">Dashboard</span>
</a>
</li>
<li class="nav-item">
{# <li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
<span class="icon-bg"><i class="mdi mdi-crosshairs-gps menu-icon"></i></span>
<span class="menu-title">UI Elements</span>
@ -269,7 +269,7 @@
<li class="nav-item"> <a class="nav-link" href="pages/samples/error-500.html"> 500 </a></li>
</ul>
</div>
</li>
</li> #}
<li class="nav-item sidebar-user-actions">
<div class="user-details">
<div class="d-flex justify-content-between align-items-center">
@ -294,12 +294,12 @@
</a>
</div>
</li>
<li class="nav-item sidebar-user-actions">
{# <li class="nav-item sidebar-user-actions">
<div class="sidebar-user-menu">
<a href="#" class="nav-link"><i class="mdi mdi-speedometer menu-icon"></i>
<span class="menu-title">Take Tour</span></a>
</div>
</li>
</li> #}
<li class="nav-item sidebar-user-actions">
<div class="sidebar-user-menu">
<a href="/logout" class="nav-link"><i class="mdi mdi-logout menu-icon"></i>

View File

@ -59,7 +59,6 @@ proc getUser*(db: DbConn, email, password: string): User =
return user
proc getUserOrdersAmount*(db: DbConn, userId: int): (int, float)=
echo userId
var
row = db.getAllRows(sql"SELECT * FROM orders WHERE user_id=?", userId)
totalQuantity = 0