Skip to content

Commit

Permalink
Fix code example typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Sep 15, 2021
1 parent a6535a4 commit f3898fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion praw/models/reddit/subreddit.py
Expand Up @@ -942,7 +942,7 @@ def submit(
.. code-block::
choices = list(subreddit.link_templates.user_selectable())
choices = list(subreddit.link_templates.flair.user_selectable())
template_id = next(x for x in choices if x["flair_text"] == "news")["flair_template_id"]
subreddit.submit("title", url="https://www.news.com/", flair_id=template_id)
Expand Down

0 comments on commit f3898fa

Please sign in to comment.