removed fix_db, fixes.sql, and updated todo

This commit is contained in:
2020-11-17 21:30:51 +11:00
parent 4ee94337b2
commit f765a18327
3 changed files with 3 additions and 96 deletions

11
main.py
View File

@@ -155,16 +155,5 @@ def book(id):
def main_page():
return render_template("base.html")
def fix_db():
books = Book.query.all()
for book in books:
rating=Rating.query.filter_by(name=book.rating).all()
book.temp_rating=rating[0].id
print(book.temp_rating)
db.session.commit()
print( "ran fix_db()")
if __name__ == "__main__":
# fix_db()
app.run(host="0.0.0.0", debug=True)