admin: New button to delete tries for a flag
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2025-02-04 19:07:47 +01:00
commit 08a31898df
7 changed files with 99 additions and 4 deletions

View file

@ -79,6 +79,10 @@ func (k *FlagLabel) TeamsOnIt() ([]int64, error) {
return nil, nil
}
func (k *FlagLabel) DeleteTries() error {
return nil
}
// AddFlagLabel creates and fills a new struct Flag and registers it into the database.
func (k *FlagLabel) Create(e *Exercice) (Flag, error) {
if res, err := DBExec("INSERT INTO exercice_flag_labels (id_exercice, ordre, label, variant) VALUES (?, ?, ?, ?)", e.Id, k.Order, k.Label, k.Variant); err != nil {