remove unneeded query of all objects
This commit is contained in:
@@ -53,7 +53,6 @@ def new_rating():
|
||||
db.session.add(rating)
|
||||
db.session.commit()
|
||||
st.SetMessage( "Created new Rating (id={})".format(rating.id) )
|
||||
ratings = Rating.query.order_by('id').all()
|
||||
return redirect( '/ratings' )
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user