Skip to content

Commit

Permalink
fix: convert ints to 10 base, not 16
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Sep 10, 2024
1 parent b946a1c commit ba0487f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion views/movie.templ
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ templ Movie(movie types.Movie, back bool) {
}
if movie.Rating.Valid {
@components.DescriptionListItem("Rating", false) {
{ strconv.FormatInt(movie.Rating.Int64, 16) }
{ strconv.FormatInt(movie.Rating.Int64, 10) }
}
}
@components.DescriptionListItem("Watched", false) {
Expand Down
2 changes: 1 addition & 1 deletion views/movie_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion views/stats.templ
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ templ Stats(stats types.Stats, formattedTotalRuntime string, mostWatchedCast []c
}
if bestOfTheYear.Rating.Valid {
<span class="text-xs">
({ strconv.FormatInt(bestOfTheYear.Rating.Int64, 16) })
({ strconv.FormatInt(bestOfTheYear.Rating.Int64, 10) })
</span>
}
}
Expand Down
2 changes: 1 addition & 1 deletion views/stats_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba0487f

Please sign in to comment.