lixxu/flask-paginate

did't show pagination.links

Opened this issue · 1 comments

extym commented

Code:
total = cursor.rowcount
pagination = Pagination(page=page, total=total, search=True,
per_page=limit, css_framework='bootstrap3')

html:

{% for row in rows %}

{{ row[1] }}

                                        <td>{{ row[3] }}</td>
                                        <td>{{ row[2] }}</td>
                                        <td>{{ row[4] }}</td>
                                        <td>{{ row[6] }}</td>
                                        <td>{{ row[7] }}</td>
                                        <td>{{ row[8] }}</td>
                                        <td>{{ row[9] }}</td>
                                        <td>{{ row[21] }}</td>
                                        <td>{{ row[20] }}</td>
                                    </tr>
                                    {% endfor %}
                                    </tbody>
                                    <tr>
                                        {{ pagination.info }}
                                        {{ pagination.links }}
                                    </tr>
                                </table>
                                {{ pagination.info }}{{ pagination.links }}
                            </div>

but we see pagination.info only, and the total is 0, but cursor.rowcount == 9

Screenshot from 2024-03-22 08-43-29

flask-paginate last version

lixxu commented

you need pass found=found for search pagination, and pagination link is empty if only one page