This commit is contained in:
2025-05-26 16:30:40 -05:00
parent 6de9729329
commit eb111dde14
8 changed files with 90 additions and 22 deletions

View File

@ -7,7 +7,7 @@ bp = Blueprint('plant', __name__, template_folder='templates')
@bp.route('/plants')
def index():
plants = Plant.query.order_by(Plant.created_at.desc()).all()
plants = Plant.query.order_by(Plant.date_added.desc()).all()
return render_template('plant/index.html', plants=plants)
@bp.route('/plants/<int:plant_id>')