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