fixup! sync: Extract function that import flags from importer

This commit is contained in:
nemunaire 2019-07-10 16:58:20 +02:00
parent a3d473983d
commit 4c7fd839b6

View File

@ -4,9 +4,9 @@ import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"log" "log"
"time"
"path" "path"
"strings" "strings"
"time"
) )
// DisplayAllFlags doesn't respect the predefined constraint existing between flags. // DisplayAllFlags doesn't respect the predefined constraint existing between flags.
@ -296,7 +296,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
} }
if t == nil { if t == nil {
h := getHashedFlag([]byte(soluce)) h := ComputeHashedFlag([]byte(soluce))
m.Soluce = hex.EncodeToString(h[:]) m.Soluce = hex.EncodeToString(h[:])
} }