示例#1
0
文件: vocably.py 项目: vhew/vocably
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
示例#2
0
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
示例#3
0
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