diff options
author | maride <maride@darknebu.la> | 2018-10-01 15:01:01 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2018-10-01 15:01:01 +0200 |
commit | 364a18c1f138811e1eba77be5514e458ef2e21a4 (patch) | |
tree | ec3cdaf17eaf7ec90437cb4c6f459b444c963226 /src/seed.go | |
parent | 715fb688cf599896050bc0adcf711074fb94b73f (diff) |
Save timestamp when entering flag
Diffstat (limited to 'src/seed.go')
-rw-r--r-- | src/seed.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/seed.go b/src/seed.go index 3dce55f..af14d38 100644 --- a/src/seed.go +++ b/src/seed.go @@ -1,12 +1,13 @@ package main import ( + "encoding/json" "flag" "fmt" "github.com/pkg/errors" "io/ioutil" "log" - "encoding/json" + "time" ) var ( @@ -54,7 +55,7 @@ func readSeedFile(path string) ([]Challenge, error) { Name: name, Description: desc, Flag: flag, - FoundFlag: false, + FoundFlag: time.Unix(0, 0), FlagTries: 0, Container: cont, Category: category, |