commit mix - code incomplet

This commit is contained in:
2022-11-09 12:38:32 -05:00
parent 1f037e9251
commit 4ffdb5780a
24 changed files with 1076 additions and 816 deletions
+1 -2
View File
@@ -15,14 +15,13 @@ import std/json
import httpcore
import strutils
import strformat
import std/times
import std/options
import std/httpclient
import std/asyncdispatch
import utils # Joplin utils procedures and types
from os import sleep
# from os import sleep
from posix import read, write, fdatasync, close
# --==--==--==--==--==--==--==--==--==--==-- #
+6 -2
View File
@@ -38,7 +38,7 @@ type DashbordData* = object
category*: seq[string]
icon*: seq[string]
open_method*: seq[string]
tag*: seq[string]
tag*: seq[seq[string]]
hotkey*: seq[string]
color*: seq[string]
@@ -75,6 +75,7 @@ type ColomnRightData* = ref object of RootObj
proc getDashbordData*(): Future[DashbordData] {.async.} =
var ddata: DashbordData
var tagslist: seq[string]
let
data = parseExcel("data/dashbord.xlsx", header = true)
@@ -101,7 +102,10 @@ proc getDashbordData*(): Future[DashbordData] {.async.} =
ddata.category.add(rows[i][10])
ddata.icon.add(rows[i][11])
ddata.open_method.add(rows[i][12])
ddata.tag.add(rows[i][13])
tagslist = rows[i][13].split(',')
ddata.tag.add(tagslist)
ddata.hotkey.add(rows[i][14])
ddata.color.add(rows[i][15])