db: Add cksum_shown field to files in order to store second checksum in case of gziped content
This commit is contained in:
parent
91b2daea2e
commit
6b7ed273b7
5 changed files with 40 additions and 25 deletions
|
|
@ -178,7 +178,7 @@ func createExerciceFile(c *gin.Context) {
|
|||
if digest, err := hex.DecodeString(uf.Digest); err != nil {
|
||||
return nil, err
|
||||
} else {
|
||||
return exercice.(*fic.Exercice).ImportFile(filePath, origin, digest)
|
||||
return exercice.(*fic.Exercice).ImportFile(filePath, origin, digest, nil)
|
||||
}
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue