Skip to content

Conversation

@tcareer34
Copy link

Changes made in code to modify category issues

Changes made to
line 37:
        cur.execute('SELECT productId, name, price, description, image, stock FROM products ORDER BY productId DESC LIMIT 1 ')
        cur.execute(
            'SELECT productId, name, price, description, image, stock FROM products ORDER BY productId DESC LIMIT 1 ')

Fix line 42:
        category_data = [(-1,"Error")]
        category_data = [(-1, "Error")]

fix line 47:
    return render_template('home.html', itemData=item_data, loggedIn=logged_in, firstName=first_name, noOfItems=no_of_items, categoryData=category_data)
    return render_template('home.html', itemData=item_data, loggedIn=logged_in, firstName=first_name,
                           noOfItems=no_of_items, categoryData=category_data)
Fixed line 25 changing user_id and first_name to userId and firstName

Fixed line 27 changing user_id to userId
Made changes to final code
update comments
Adding more comments in the code on the line our team fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant