Skip to content

Conversation

@kingarthurthegr8
Copy link

@app.route("/add") def admin(): with sqlite3.connect('database.db') as conn: cur = conn.cursor() cur.execute("SELECT categoryId, name FROM categories") categories = cur.fetchall() conn.close() return render_template('add.html', categories=categories)

Michael-a-Horton and others added 4 commits June 22, 2020 18:28
fixed the category function
line 52 and 53 had "3"'s infron of them making them comments and not a part of the code.
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.

2 participants