Skip to content

Commit

Permalink
reversed projects so newest first
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Jul 17, 2023
1 parent 85920e2 commit 9ed29fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def wrapper(*args, **kwargs):
@app.route("/home")
def home():
projects = Projects.query.all()
projects.reverse() # reverses the order of the projects so newest is first
return render_template("home.html", homepage=True, projects=projects)
# hompeage is used to determine whether to show the long about me or not

Expand All @@ -57,6 +58,7 @@ def about_me():
@app.route("/projects")
def projects():
projects = Projects.query.all()
projects.reverse()
return render_template("projectspage.html", projects=projects)


Expand Down

0 comments on commit 9ed29fc

Please sign in to comment.