Skip to content

Commit

Permalink
Merge pull request #377 from JonathanDCohen/master
Browse files Browse the repository at this point in the history
Adding 'hide_ads' to the input params of 'set_settings'
  • Loading branch information
bboe committed Mar 26, 2015
2 parents f626695 + c977eff commit 63ab66b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion praw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,8 @@ def set_settings(self, subreddit, title, public_description='',
exclude_banned_modqueue=False, comment_score_hide_mins=0,
public_traffic=False, collapse_deleted_comments=False,
spam_comments='low', spam_links='high',
spam_selfposts='high', submit_text='', **kwargs):
spam_selfposts='high', submit_text='',
hide_ads=False, **kwargs):
"""Set the settings for the given subreddit.
:param subreddit: Must be a subreddit object.
Expand All @@ -1507,6 +1508,7 @@ def set_settings(self, subreddit, title, public_description='',
'domain_sidebar': domain_sidebar,
'exclude_banned_modqueue': exclude_banned_modqueue,
'header-title': header_hover_text or '',
'hide_ads': hide_ads,
'lang': language,
'link_type': content_options,
'over_18': over_18,
Expand Down

0 comments on commit 63ab66b

Please sign in to comment.