default max_comment_cols set to 120
This commit is contained in:
@@ -295,7 +295,7 @@ class SubmissionContent(Content):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, submission, loader, indent_size=2, max_indent_level=8,
|
def __init__(self, submission, loader, indent_size=2, max_indent_level=8,
|
||||||
order=None, max_comment_cols=80):
|
order=None, max_comment_cols=120):
|
||||||
|
|
||||||
submission_data = self.strip_praw_submission(submission)
|
submission_data = self.strip_praw_submission(submission)
|
||||||
comments = self.flatten_comments(submission.comments)
|
comments = self.flatten_comments(submission.comments)
|
||||||
@@ -312,7 +312,7 @@ class SubmissionContent(Content):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_url(cls, reddit, url, loader, indent_size=2, max_indent_level=8,
|
def from_url(cls, reddit, url, loader, indent_size=2, max_indent_level=8,
|
||||||
order=None, max_comment_cols=80):
|
order=None, max_comment_cols=120):
|
||||||
|
|
||||||
url = url.replace('http:', 'https:') # Reddit forces SSL
|
url = url.replace('http:', 'https:') # Reddit forces SSL
|
||||||
# Sometimes reddit will return a 403 FORBIDDEN when trying to access an
|
# Sometimes reddit will return a 403 FORBIDDEN when trying to access an
|
||||||
|
|||||||
Reference in New Issue
Block a user