removed fix_db, fixes.sql, and updated todo
This commit is contained in:
11
main.py
11
main.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user