Add a new setting to don't count same responses in scores
This commit is contained in:
parent
8dc460b507
commit
910ec94fd8
8 changed files with 44 additions and 5 deletions
|
|
@ -346,7 +346,12 @@ CREATE TABLE IF NOT EXISTS claim_descriptions(
|
|||
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
|
||||
`); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, err := db.Exec("CREATE OR REPLACE VIEW exercice_distinct_tries AS SELECT id_exercice, id_team, MAX(time) AS time, cksum, nbdiff FROM exercice_tries GROUP BY id_team, id_exercice, cksum;"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue