We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8017a1 commit c9b33a3Copy full SHA for c9b33a3
modmail/utils/pagination.py
@@ -252,9 +252,11 @@ def update_states(self) -> None:
252
"""
253
# update the footer
254
page_indicator = f"Page {self.index+1}/{len(self._pages)}"
255
- footer_text = (
256
- f"{self.footer_text} ({page_indicator})" if self.footer_text is not None else page_indicator
257
- )
+ if self.footer_text:
+ footer_text = f"{self.footer_text} ({page_indicator})"
+ else:
258
+ footer_text = page_indicator
259
+
260
if self.embed is None:
261
self.content = (self.title or "") + "\n"
262
self.content += self._pages[self.index]
0 commit comments