Skip to content

Commit

Permalink
fix time set field
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Oct 24, 2024
1 parent 56c667b commit 3d2fdd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home/templates/home/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h4>Total Score: {{game.overall}}</h4>
<tr>
<td>{{ entry.leaderboard.name }}</td>
<td>{{ entry.score|default:"No Score" }}</td>
<td>{{ entry.source|default:"N/A" }}</td>
<td>{{ entry.time_set|default:"N/A" }}</td>
<td>
{% if entry.score %}
{% if "youtube" in entry.source or "streamable" in entry.source %}
Expand Down
3 changes: 2 additions & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3d2fdd1

Please sign in to comment.