GrLdev / Rate-My-Student-Home

A website designed to allow students rate their student homes in Cardiff.
3 stars 0 forks source link

Update /browse to hide removed reviews and show report buttons #102

Closed theobaur13 closed 1 year ago

theobaur13 commented 1 year ago

The following lines need to be modified so that they filter out reviews where removed = True image image Here is an example of where this filter is applied: Review.query.filter_by(id=review_id, removed=False).first():

Report buttons should also be added to every review displayed, below is an example of the report button <a href="{{ url_for('report',review_id=review.id) }}">Report</a>