SQL-Abfrage vereinfacht

This commit is contained in:
Jason Streifling 2023-10-17 16:34:21 +02:00
parent 7144489afb
commit 664c24974b

View File

@ -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)
}