diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 17:40:49 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 17:40:49 +0200 |
commit | 650053446d18424500ae6330b5ad0da81fa86373 (patch) | |
tree | 248fc9099a3acb7308621af6fba90dea1d99b852 /pages | |
parent | e6e3f258c519fdef01d1654a50b15335b57c4153 (diff) | |
download | gosten-650053446d18424500ae6330b5ad0da81fa86373.tar.gz gosten-650053446d18424500ae6330b5ad0da81fa86373.tar.bz2 gosten-650053446d18424500ae6330b5ad0da81fa86373.zip |
SQL: Fetch * instead of specific columns for simplicity
Diffstat (limited to '')
-rw-r--r-- | pages/pages.templ | 4 | ||||
-rw-r--r-- | pages/pages_templ.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pages/pages.templ b/pages/pages.templ index b9b7489..d2bfad2 100644 --- a/pages/pages.templ +++ b/pages/pages.templ @@ -21,7 +21,7 @@ templ index(user string) { } } -templ recur(rows []model.GetRecurExpensesRow) { +templ recur(rows []model.RecurExpense) { @content() { <ul class="list-group"> for _, r := range rows { @@ -33,7 +33,7 @@ templ recur(rows []model.GetRecurExpensesRow) { } } -templ categories(rows []model.GetCategoriesOrderedRow) { +templ categories(rows []model.Category) { @content() { <ul class="list-group"> for _, r := range rows { diff --git a/pages/pages_templ.go b/pages/pages_templ.go index 263d903..fe1ad49 100644 --- a/pages/pages_templ.go +++ b/pages/pages_templ.go @@ -126,7 +126,7 @@ func index(user string) templ.Component { }) } -func recur(rows []model.GetRecurExpensesRow) templ.Component { +func recur(rows []model.RecurExpense) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { @@ -196,7 +196,7 @@ func recur(rows []model.GetRecurExpensesRow) templ.Component { }) } -func categories(rows []model.GetCategoriesOrderedRow) templ.Component { +func categories(rows []model.Category) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { |