diff --git a/home/templates/home/user_profile.html b/home/templates/home/user_profile.html index 8d83a2a..657951f 100644 --- a/home/templates/home/user_profile.html +++ b/home/templates/home/user_profile.html @@ -76,7 +76,7 @@

Total Score: {{game.overall}}

{{ entry.leaderboard.name }} {{ entry.score|default:"No Score" }} - {{ entry.source|default:"N/A" }} + {{ entry.time_set|default:"N/A" }} {% if entry.score %} {% if "youtube" in entry.source or "streamable" in entry.source %} diff --git a/home/views.py b/home/views.py index ab19cee..d2df1eb 100644 --- a/home/views.py +++ b/home/views.py @@ -125,7 +125,8 @@ def user_profile(request, user_id: int): games[game_name]["leaderboards"].append({ "leaderboard": leaderboard, "score": score_value, - "source": user_score.source if user_score else None + "source": user_score.source if user_score else None, + "time_set": user_score.time_set if user_score else None }) games[game_name]["overall"] += score_value