Explicitly make post index a string in format

This commit is contained in:
John Helmert
2019-07-22 17:54:39 -05:00
parent a5c8ecc88b
commit 59ac141528

View File

@@ -290,7 +290,7 @@ class SubredditPage(Page):
# drawtime. This way the format list knows how to use the data,
# and can simply be used when the data is available
if item == "%i":
form.append((lambda data: data['index'],
form.append((lambda data: str(data['index']),
lambda data: self._submission_attr(data), first))
elif item == "%t":
form.append((lambda data: data['title'],
@@ -406,8 +406,6 @@ class SubredditPage(Page):
if not string and first is False:
continue
string = str(string)
# We only want to print a maximum of one line of data
# TODO - support line wrapping
string = string.split('\n')[0]