Skip to content

Commit

Permalink
Merge pull request praw-dev#1534 from jarhill0/fix-poll-docs
Browse files Browse the repository at this point in the history
Fix submit_poll documentation
  • Loading branch information
jarhill0 committed Jun 29, 2020
2 parents 87a0ad0 + c610742 commit 6ba5c92
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions praw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ def submit_poll(
.. code-block:: python
title = "Do you like PRAW?"
reddit.subreddit("reddit_api_test").submit(
reddit.subreddit("reddit_api_test").submit_poll(
title,
selftext="",
options=["Yes", "No"],
Expand Down Expand Up @@ -2813,7 +2813,7 @@ def bulk_read(self, other_subreddits=None, state=None):
]

def conversations(
self, after=None, limit=None, other_subreddits=None, sort=None, state=None,
self, after=None, limit=None, other_subreddits=None, sort=None, state=None
): # noqa: D207, D301
"""Generate :class:`.ModmailConversation` objects for subreddit(s).
Expand Down Expand Up @@ -3105,10 +3105,7 @@ def delete_banner_additional_image(self):
reddit.subreddit("SUBREDDIT").stylesheet.delete_banner_additional_image()
"""
data = {
"bannerPositionedImage": "",
"secondaryBannerPositionedImage": "",
}
data = {"bannerPositionedImage": "", "secondaryBannerPositionedImage": ""}
self._update_structured_styles(data)

def delete_banner_hover_image(self):
Expand Down Expand Up @@ -3200,11 +3197,7 @@ def update(self, stylesheet, reason=None):
'p { color: green; }', "color text green")
"""
data = {
"op": "save",
"reason": reason,
"stylesheet_contents": stylesheet,
}
data = {"op": "save", "reason": reason, "stylesheet_contents": stylesheet}
url = API_PATH["subreddit_stylesheet"].format(subreddit=self.subreddit)
self.subreddit._reddit.post(url, data=data)

Expand Down

0 comments on commit 6ba5c92

Please sign in to comment.