I worked more on the fruits and veggies database and it now has a hierarchy so that if you go into addfruit and hit submit it will go to '/addfruit/submit' instead of just '/submit'. I also changed it so that you can't leave the food name field empty. I also accidentally added a fruit with no name that I couldn't delete so I just added in the line "cur.execute('DELETE FROM food WHERE name=""')" temporarily in run.py. The next thing I should do is add buttons to return to the table when a fruit is removed.
Excellent! I can't wait until I have time to dig into the details.
ReplyDelete