Skip to content

Multipage answer records counter #7

@kir0st

Description

@kir0st

https://github.com/usher2/u2ckbot/blob/master/answers.go, line 519
res += fmt.Sprintf("\u2195 результаты с *%d* по *%d* из *%d*\n", offset+1, offset+PRINT_LIMIT, len(a))

need add check for case:
if (offset+PRINT_LIMIT) more than len(a)

Example:
/d_jhhn57s82mg14 contains 9 recodrs, page 2:

результаты с 6 по 10 из 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions