diff --git a/src/Load.nim b/src/Load.nim index a610aad..ed8ce60 100644 --- a/src/Load.nim +++ b/src/Load.nim @@ -22,6 +22,7 @@ const DEFAULT_CONTENT = """ ] """ + type PageSave* = object pageName*: string pageContent*: JsonNode @@ -61,7 +62,6 @@ func getGroupsFromPage*(page: PageSave): seq[GroupSave] = # debugEcho groupName # debugEcho groupContent result.add GroupSave(groupName: groupName, groupContent: groupContent) - func getTasksFromGroup*(group: GroupSave): seq[TaskSave] = assert group.groupContent.kind == JArray @@ -73,5 +73,3 @@ func getTasksFromGroup*(group: GroupSave): seq[TaskSave] = note: task["note"].getStr, done: task["done"].getBool ) - -# readSaveFromFS().getPages()[0].getGroupsFromPage()[0].getTasksFromGroup.echo diff --git a/src/Save.nim b/src/Save.nim index 2bac11a..f66072d 100644 --- a/src/Save.nim +++ b/src/Save.nim @@ -12,7 +12,7 @@ proc getAllPages(tabView: TabView): seq[TabPage] = for i in 0..