aboutsummaryrefslogtreecommitdiff
path: root/tools/importer/ACDv2Reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/importer/ACDv2Reader.go')
-rw-r--r--tools/importer/ACDv2Reader.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/importer/ACDv2Reader.go b/tools/importer/ACDv2Reader.go
index 974da52..4dab3c0 100644
--- a/tools/importer/ACDv2Reader.go
+++ b/tools/importer/ACDv2Reader.go
@@ -7,6 +7,7 @@ import (
7 "strings" 7 "strings"
8 8
9 "fagott.pw/grilist/modules/grils" 9 "fagott.pw/grilist/modules/grils"
10 "fagott.pw/grilist/modules/series"
10) 11)
11 12
12const failMsg = "Offenbar war meine Annahme bzgl. der Traits nicht ganz korrekt" 13const failMsg = "Offenbar war meine Annahme bzgl. der Traits nicht ganz korrekt"
@@ -75,6 +76,13 @@ func (r *ACDv2Reader) Read(path string) WrappedGril {
75 } 76 }
76 g.Gril.Traits = append(g.Gril.Traits, t) 77 g.Gril.Traits = append(g.Gril.Traits, t)
77 } 78 }
79 g.Gril.Series = make([]series.Series, 0)
80 for _, v := range jObj.Assignments {
81 s := series.Series{
82 ID: v,
83 }
84 g.Gril.Series = append(g.Gril.Series, s)
85 }
78 return g 86 return g
79} 87}
80 88