comparison pkg/controllers/srimports.go @ 1241:a45fa8943254

Sounding result import: Forgot to return the token temp file to the importer. Doh!
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Nov 2018 18:05:19 +0100
parents d842d9d10872
children 1c0c9190fcf2
comparison
equal deleted inserted replaced
1240:9b0a7b3ea297 1241:a45fa8943254
59 now := time.Now().Format("2006-15-04-05") 59 now := time.Now().Format("2006-15-04-05")
60 dst := filepath.Join(dir, soundingResultName+"-"+token+"-"+now) 60 dst := filepath.Join(dir, soundingResultName+"-"+token+"-"+now)
61 if err := misc.UnmakeTempFile(token, dst); err != nil { 61 if err := misc.UnmakeTempFile(token, dst); err != nil {
62 return "", err 62 return "", err
63 } 63 }
64 return dst, nil
64 } 65 }
65 66
66 return storeSoundingResult(req) 67 return storeSoundingResult(req)
67 } 68 }
68 69