diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-11 20:47:15 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-11 20:47:15 +0000 |
commit | 47c2880467d1906c9a40746da4bf7c212634db79 (patch) | |
tree | dd897564eb6dfd0fd1e878bcf9029d3f8464318f /internal/models | |
parent | 21ec508717ecd6112984b56ca376ebac11477a2a (diff) |
Adds an operations html template
Does not contain any dynamic data at this point, i.e. does not actually
list the operations from the database - just dummy data at this point.
Diffstat (limited to 'internal/models')
-rw-r--r-- | internal/models/operation.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/models/operation.go b/internal/models/operation.go index abb874c..4c5d67f 100644 --- a/internal/models/operation.go +++ b/internal/models/operation.go @@ -19,7 +19,9 @@ type OperationModel struct { func (m *OperationModel) ListAll() ([]Operation, error) { - stmt := `SELECT op.id, op.name, op.description, op.created, org.name FROM operations op INNER JOIN organisations org ON op.organisation_id=org.id` + stmt := `SELECT op.id, op.name, op.description, op.created, org.name + FROM operations op + INNER JOIN organisations org ON op.organisation_id=org.id` // stmt := `SELECT * FROM operations` |