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