From ba0487fafcee3f4262e3d618fc4e237ae05b0e48 Mon Sep 17 00:00:00 2001 From: Rickard Natt och Dag Date: Tue, 10 Sep 2024 08:33:03 +0200 Subject: [PATCH] fix: convert ints to 10 base, not 16 --- views/movie.templ | 2 +- views/movie_templ.go | 2 +- views/stats.templ | 2 +- views/stats_templ.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/views/movie.templ b/views/movie.templ index b760091..9eb4cc7 100644 --- a/views/movie.templ +++ b/views/movie.templ @@ -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) { diff --git a/views/movie_templ.go b/views/movie_templ.go index 3987d39..a4b6047 100644 --- a/views/movie_templ.go +++ b/views/movie_templ.go @@ -305,7 +305,7 @@ func Movie(movie types.Movie, back bool) templ.Component { } ctx = templ.InitializeContext(ctx) var templ_7745c5c3_Var19 string - templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.FormatInt(movie.Rating.Int64, 16)) + templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.FormatInt(movie.Rating.Int64, 10)) if templ_7745c5c3_Err != nil { return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/movie.templ`, Line: 72, Col: 50} } diff --git a/views/stats.templ b/views/stats.templ index a56918f..aca9d6d 100644 --- a/views/stats.templ +++ b/views/stats.templ @@ -48,7 +48,7 @@ templ Stats(stats types.Stats, formattedTotalRuntime string, mostWatchedCast []c } if bestOfTheYear.Rating.Valid { - ({ strconv.FormatInt(bestOfTheYear.Rating.Int64, 16) }) + ({ strconv.FormatInt(bestOfTheYear.Rating.Int64, 10) }) } } diff --git a/views/stats_templ.go b/views/stats_templ.go index 8e67f9a..c304363 100644 --- a/views/stats_templ.go +++ b/views/stats_templ.go @@ -303,7 +303,7 @@ func Stats(stats types.Stats, formattedTotalRuntime string, mostWatchedCast []co return templ_7745c5c3_Err } var templ_7745c5c3_Var19 string - templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.FormatInt(bestOfTheYear.Rating.Int64, 16)) + templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.FormatInt(bestOfTheYear.Rating.Int64, 10)) if templ_7745c5c3_Err != nil { return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/stats.templ`, Line: 51, Col: 63} }