diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-31 03:57:19 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-31 03:57:19 +0100 |
| commit | 2a50cbb5ffd3f4fbc088bd18598980e0f142d7b7 (patch) | |
| tree | ec5793e69441665019b0feffa5d19a38e2c0ef41 /interact.go | |
| parent | 0e7ea506b76660c91fa9f479f7de9c79304ae0dc (diff) | |
Import now updates all ids
Diffstat (limited to 'interact.go')
| -rw-r--r-- | interact.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/interact.go b/interact.go index d0b3d71..c9b96e6 100644 --- a/interact.go +++ b/interact.go @@ -514,10 +514,11 @@ func interact(fulldb bool) { c.Println("Projects:",len(prs)) c.Println("Customers:",len(cus)) //c.Println("Customers:",cus) - - ExportCustomers(cus,"export.customers") - ExportProjects(prs,"export.projects") - ExportTasks(tas,"export.tasks") + if isInterSure("Export ?"){ + ExportCustomers(cus,"export.customers") + ExportProjects(prs,"export.projects") + ExportTasks(tas,"export.tasks") + } icus := ImportCustomers("export.customers") c.Println("Imported Customers:",len(icus)) @@ -529,7 +530,8 @@ func interact(fulldb bool) { iprs := ImportProjects("export.projects") c.Println("Imported Projects:",len(iprs)) - c.Println("Projects:",iprs) + //c.Println("Projects:",iprs) + SaveImportsToDB(icus,iprs,itas) }, }) |
