From 664c24974b9d88058119a38eab8bc7fdd05e5665 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Tue, 17 Oct 2023 16:34:21 +0200 Subject: [PATCH] SQL-Abfrage vereinfacht --- packages/data/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data/db.go b/packages/data/db.go index ea22a9c..73cf515 100644 --- a/packages/data/db.go +++ b/packages/data/db.go @@ -118,7 +118,7 @@ func (db *DB) WriteBriefing(b *types.Briefing) error { func (db *DB) ReadAll() ([]*types.Briefing, error) { bs := make([]*types.Briefing, 0) - rows, err := db.Query("SELECT *" + " FROM " + db.Name) + rows, err := db.Query("SELECT * FROM " + db.Name) if err != nil { return nil, fmt.Errorf("*DB.ReadAll: db.Query(\"SELECT * FROM \"+db.Name): %v\n", err) }