admin/sync: Also handle uncompressed file in CheckExerciceFiles

This commit is contained in:
nemunaire 2022-11-03 21:35:05 +01:00
commit ae1378780f
2 changed files with 10 additions and 3 deletions

View file

@ -50,7 +50,7 @@ type EFile struct {
// NewDummyFile creates an EFile, without any link to an actual Exercice File.
// It is used to check the file validity
func (e *Exercice) NewDummyFile(origin string, dest string, checksum []byte, size int64) *EFile {
func (e *Exercice) NewDummyFile(origin string, dest string, checksum []byte, checksumShown []byte, size int64) *EFile {
return &EFile{
Id: 0,
origin: origin,
@ -58,7 +58,7 @@ func (e *Exercice) NewDummyFile(origin string, dest string, checksum []byte, siz
IdExercice: e.Id,
Name: path.Base(origin),
Checksum: checksum,
ChecksumShown: nil,
ChecksumShown: checksumShown,
Size: size,
Published: true,
}