Fixed bug where submission indicies were duplicated when paging.
This commit is contained in:
@@ -439,9 +439,10 @@ class SubredditContent(Content):
|
||||
raise IndexError
|
||||
else:
|
||||
data = self.strip_praw_submission(submission)
|
||||
data['index'] = index
|
||||
#data['index'] = len(self._submission_data)
|
||||
data['index'] = len(self._submission_data) + 1
|
||||
# Add the post number to the beginning of the title
|
||||
data['title'] = '{0}. {1}'.format(index+1, data['title'])
|
||||
data['title'] = '{0}. {1}'.format(data['index'], data['title'])
|
||||
self._submission_data.append(data)
|
||||
|
||||
# Modifies the original dict, faster than copying
|
||||
|
||||
Reference in New Issue
Block a user