diff --git a/main.py b/main.py index 67fb91b..693f2a6 100644 --- a/main.py +++ b/main.py @@ -33,10 +33,8 @@ def root(): logged_in, first_name, no_of_items = get_login_details() with sqlite3.connect('database.db') as conn: cur = conn.cursor() - # Show last product added - cur.execute('SELECT productId, name, price, description, image, stock FROM products ORDER BY productId DESC LIMIT 1 ') # Show all items - #cur.execute('SELECT productId, name, price, description, image, stock FROM products LIMIT 1') + cur.execute('SELECT productId, name, price, description, image, stock FROM products ') item_data = cur.fetchall() # Show an error instead of the categories category_data = [(-1,"Error")]