|
@@ -11,7 +11,6 @@ import (
|
11
|
11
|
"github.com/jinzhu/gorm"
|
12
|
12
|
_ "github.com/go-sql-driver/mysql"
|
13
|
13
|
"github.com/spf13/cobra"
|
14
|
|
- "github.com/gocolly/colly"
|
15
|
14
|
"io/ioutil"
|
16
|
15
|
"log"
|
17
|
16
|
"math/rand"
|
|
@@ -19,7 +18,6 @@ import (
|
19
|
18
|
"net/url"
|
20
|
19
|
"strconv"
|
21
|
20
|
"strings"
|
22
|
|
- "html"
|
23
|
21
|
"time"
|
24
|
22
|
)
|
25
|
23
|
|
|
@@ -80,7 +78,7 @@ func RunCommand() *cobra.Command {
|
80
|
78
|
panic("failed to connect database")
|
81
|
79
|
}
|
82
|
80
|
|
83
|
|
- db.Where("id <= ? and id >= ?", maxId, minId).Find(&ttsRawList)
|
|
81
|
+ db.Where("id <= ? and id >= ?", maxId, minId).Find(&phoneticList)
|
84
|
82
|
|
85
|
83
|
for _, ttsRaw := range phoneticList {
|
86
|
84
|
|