Exemplo n.º 1
0
def friend_list_for(username):
    if not search.is_current(username, "friend_list"):
        info = untappd.get_user_friends(username)
        search.index("friend_list", [info])
        search.update_last_indexed(username, "friend_list")

    data = search.get("friend_list", username)
    return data["friends"] if data else []
Exemplo n.º 2
0
def friend_list_for(username):
    if not search.is_current(username, "friend_list"):
        info = untappd.get_user_friends(username)
        search.index("friend_list", [info])
        search.update_last_indexed(username, "friend_list")

    data = search.get("friend_list", username)
    return data["friends"] if data else []
Exemplo n.º 3
0
def user_info_for(username):
    _refresh_user_info(username)
    info = search.get("user_info", username)
    return _extract_info(info)
Exemplo n.º 4
0
def user_info_for(username):
    _refresh_user_info(username)
    info = search.get("user_info", username)
    return _extract_info(info)