示例#1
0
def get_page_list():
    return [row.wiki.split("/")[-1] for row in Candidate.select()]
示例#2
0
def get_candidates():
    return [
        candidate.name for candidate in Candidate.select(
            Candidate.name).group_by(Candidate.name)
    ]