def wordsdict(): # Get words for user user_email = oauth.user_email() newwords = score.choose_words(user_email) word_defs = {w:definition.definition(w) for w in newwords} #word_defs = {"word1":"def1", "word2":"def2", "word3":"def3"} return word_defs
def words(): # Get words for user # word_defs = get_word_defs() user_email = oauth.user_email() newwords = score.choose_words(user_email) word_defs = {w:definition.definition(w) for w in newwords} output = template('words', word_defs=word_defs) return output
def words(): # Get words for user # word_defs = get_word_defs() user_email = oauth.user_email() newwords = score.choose_words(user_email) word_defs = {w: definition.definition(w) for w in newwords} output = template('words', word_defs=word_defs) return output