Skip to content

Commit 939e480

Browse files
committed
Renaming references to be more clear.
1 parent d395b56 commit 939e480

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/paginator.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ async def show_page(self, index: int) -> typing.Optional[typing.Dict]:
8585
return result
8686

8787
def update_disabled_status(self) -> None:
88-
for k, v in self._buttons_map.items():
89-
if v is None:
88+
for label, button in self._buttons_map.items():
89+
if button is None:
9090
continue
9191
elif any(
9292
(
93-
self.current == self.first_page() and k in ("<<", "<"),
94-
self.current == self.last_page() and k in (">>", ">"),
93+
self.current == self.first_page() and label in ("<<", "<"),
94+
self.current == self.last_page() and label in (">>", ">"),
9595
)
9696
):
97-
v.disabled = True
97+
button.disabled = True
9898
else:
99-
v.disabled = False
99+
button.disabled = False
100100

101101
async def create_base(self, item) -> None:
102102
"""

0 commit comments

Comments
 (0)