Fix circular import after merge

This commit is contained in:
Christoph Kluge
2024-07-09 09:50:32 +02:00
parent 0240997257
commit bf6b87d65c
5 changed files with 15 additions and 19 deletions

View File

@@ -11,7 +11,6 @@ import (
"time"
"github.com/ClusterCockpit/cc-backend/internal/repository"
"github.com/ClusterCockpit/cc-backend/internal/util"
"github.com/ClusterCockpit/cc-backend/pkg/archive"
"github.com/ClusterCockpit/cc-backend/pkg/log"
"github.com/ClusterCockpit/cc-backend/pkg/schema"
@@ -69,7 +68,7 @@ func InitDB() error {
job.Footprint = make(map[string]float64)
for _, fp := range sc.Footprint {
job.Footprint[fp] = util.LoadJobStat(jobMeta, fp)
job.Footprint[fp] = repository.LoadJobStat(jobMeta, fp)
}
job.RawFootprint, err = json.Marshal(job.Footprint)