summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-11-23 11:01:17 +0000
committerNick White <git@njw.name>2021-11-23 11:01:17 +0000
commitecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 (patch)
tree9576b315dab658cdaaa8de19f500a6a344b0c10d /cmd
parentd4e90332b1ac2d2cd06ad2fe1c0fcdfc0b690e99 (diff)
gofmt, plus update documentation of recently changed pipeline.UploadImages
Diffstat (limited to 'cmd')
-rw-r--r--cmd/lspipeline-ng/main.go2
-rw-r--r--cmd/rescribe/gui.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/lspipeline-ng/main.go b/cmd/lspipeline-ng/main.go
index 632e6ca..bf6a4bd 100644
--- a/cmd/lspipeline-ng/main.go
+++ b/cmd/lspipeline-ng/main.go
@@ -170,7 +170,7 @@ func getBookStatus(conn LsPipeliner) (inprogress []string, done []string, err er
for i, p := range prefixes {
wg.Add(1)
go getBookDetailsChan(conn, &wg, p, donec, inprogressc, errc)
- if i % 30 == 0 {
+ if i%30 == 0 {
wg.Wait()
}
}
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index 4944e42..654d875 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -12,7 +12,7 @@ import (
"os"
"path/filepath"
"strings"
-
+
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
@@ -80,14 +80,14 @@ func startGui(log log.Logger, cmd string, training string, systess bool, tessdir
if err == nil && uri != nil {
dir.SetText(uri.Path())
}
- }, myWindow)})
+ }, myWindow)
+ })
progressBar := widget.NewProgressBar()
logarea := widget.NewMultiLineEntry()
logarea.Disable()
-
// TODO: have the button be pressed if enter is pressed
gobtn = widget.NewButtonWithIcon("Process OCR", theme.UploadIcon(), func() {
if dir.Text == "" {