DB.WriteAllDataOfBriefing wurde nicht verwendet und deshalb entfernt
This commit is contained in:
parent
3496fe5f86
commit
387f662355
@ -82,26 +82,6 @@ func (db *DB) WriteGivenAnswer(b *Briefing, p *Participant, q *Question, g int)
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *DB) WriteAllDataOfBriefing(b *Briefing, sp *[]*Participant, sq *[]*Question, sg *[]*GivenAnswer) error {
|
|
||||||
if err := db.WriteBriefing(b); err != nil {
|
|
||||||
return fmt.Errorf("*DB.WriteAllDataOfBriefing: db.writeBriefing(): %v\n", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, p := range *sp {
|
|
||||||
if err := db.WriteParticipant(p); err != nil {
|
|
||||||
return fmt.Errorf("*DB.WriteAllDataOfBriefing: db.writeParticipants(): %v\n", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, p := range *sp {
|
|
||||||
for i, q := range *sq {
|
|
||||||
db.WriteGivenAnswer(b, p, q, i)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (db *DB) GetAllOverviewTableData() ([]*OverviewTableData, error) {
|
func (db *DB) GetAllOverviewTableData() ([]*OverviewTableData, error) {
|
||||||
rows, err := db.Query(`
|
rows, err := db.Query(`
|
||||||
SELECT
|
SELECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user