Created
January 11, 2019 21:15
-
-
Save Mrngilles/7c448dd8b22ae71638c1f8ceeef632e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@after_writing | |
def choose_next_post(): | |
topics_list = get_topics_list() | |
if preference in topics_list: | |
post_topic = choose_prefered_topic() | |
else: | |
post_topic = choose_first_topic() | |
return post_topic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment