Skip to content

Commit

Permalink
reverse history data
Browse files Browse the repository at this point in the history
  • Loading branch information
phattd15 committed Nov 15, 2021
1 parent a251562 commit d163d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def index(request):
color, bg_color = rating_color(problem.rating)
context["history_data"].append((problem, color, bg_color, delta))

context["history_data"].reverse()

return render(request, "home.html", context)


Expand Down

0 comments on commit d163d82

Please sign in to comment.