Fix parsing of timeline name.
This commit is contained in:
parent
85027513dd
commit
a76d3074de
2
ptk.nim
2
ptk.nim
@ -56,7 +56,7 @@ proc loadTimeline(filename: string): Timeline =
|
||||
raise newException(ValueError,
|
||||
"unable to parse the timeline file as JSON: " & filename)
|
||||
|
||||
var timeline: Timeline = (name: $timelineJson["name"], marks: @[])
|
||||
var timeline: Timeline = (name: timelineJson["name"].getStr(), marks: @[])
|
||||
|
||||
for markJson in timelineJson["marks"]:
|
||||
timeline.marks.add((
|
||||
|
Loading…
x
Reference in New Issue
Block a user