use random page between 1 and --page
This commit is contained in:
parent
74c79052c7
commit
31e29cf1e5
2
main.go
2
main.go
@ -153,7 +153,7 @@ func search(c *cli.Command) error {
|
|||||||
TopRange: c.String("range"),
|
TopRange: c.String("range"),
|
||||||
AtLeast: c.String("atLeast"),
|
AtLeast: c.String("atLeast"),
|
||||||
Ratios: c.StringSlice("ratios"),
|
Ratios: c.StringSlice("ratios"),
|
||||||
Page: c.Int("page"),
|
Page: int64(rand.Intn(int(c.Int("page"))) + 1),
|
||||||
}
|
}
|
||||||
query := c.Args().First()
|
query := c.Args().First()
|
||||||
if query != "" {
|
if query != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user