def likers_list_for_sheet(sheet_id): """ Returns a list of people who like sheet_id, including their names and profile links. """ sheet = get_sheet(sheet_id) likes = sheet.get("likes", []) return(annotate_user_list(likes))
def likers_list_for_sheet(sheet_id): """ Returns a list of people who like sheet_id, including their names and profile links. """ sheet = get_sheet(sheet_id) likes = sheet.get("likes", []) return (annotate_user_list(likes))
def follow_list_api(request, kind, uid): """ API for retrieving a list of followers/followees for a given user. """ if kind == "followers": f = FollowersSet(int(uid)) elif kind == "followees": f = FolloweesSet(int(uid)) return jsonResponse(annotate_user_list(f.uids))