Partial resolution of exercices
This commit is contained in:
parent
98aa051a37
commit
3cd6cd959d
8 changed files with 46 additions and 24 deletions
|
|
@ -2,6 +2,7 @@ package fic
|
|||
|
||||
import (
|
||||
"crypto/sha512"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Key struct {
|
||||
|
|
@ -88,3 +89,7 @@ func (k Key) Check(val string) bool {
|
|||
|
||||
return true
|
||||
}
|
||||
|
||||
func (k Key) FoundBy(t Team) {
|
||||
DBExec("INSERT INTO key_found (id_key, id_team, time) VALUES (?, ?, ?)", k.Id, t.Id, time.Now())
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue