Этот коммит содержится в:
Ben Schumacher
2024-04-10 12:47:06 +02:00
коммит произвёл GitHub
родитель 9fee0393c3
Коммит b56c65ec2d
15 изменённых файлов: 31 добавлений и 34 удалений

Просмотреть файл

@@ -160,7 +160,7 @@ func botListCmdF(c client.Client, cmd *cobra.Command, args []string) error {
all, _ := cmd.Flags().GetBool("all")
page := 0
perPage := 200
perPage := DefaultPageSize
tpl := `{{.UserId}}: {{.Username}}`
for {
var bots []*model.Bot
@@ -206,7 +206,7 @@ func botListCmdF(c client.Client, cmd *cobra.Command, args []string) error {
printer.PrintT(tpl+tplExtraText, bot)
}
if len(bots) < 200 {
if len(bots) < perPage {
break
}