Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and renovate[bot] committed Aug 25, 2023
1 parent 90eff98 commit 5f451c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weblate_web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def get_page_range(page_obj):
page_range = []
if page_num > (ON_EACH_SIDE + ON_ENDS):
page_range += [
*range(0, ON_ENDS),
*range(ON_ENDS),
DOT,
*range(page_num - ON_EACH_SIDE, page_num + 1),
]
else:
page_range.extend(range(0, page_num + 1))
page_range.extend(range(page_num + 1))
if page_num < (num_pages - ON_EACH_SIDE - ON_ENDS - 1):
page_range += [
*range(page_num + 1, page_num + ON_EACH_SIDE + 1),
Expand Down

0 comments on commit 5f451c6

Please sign in to comment.