Fix parsing of timeline name.

This commit is contained in:
Jonathan Bernard 2016-10-08 00:50:09 -05:00
parent 85027513dd
commit a76d3074de

View File

@ -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((