Ejemplo n.º 1
0
def display_all_rankings(output_format, top_amount):
    if output_format == "human" or "tab":
        for game in sf.get_valid_games():
            calcs.show_rankings(game, number=top_amount, format=output_format)
    else:
        print("Format '" + output_format + "' not valid.")
        exit(1)
def display_all_rankings(output_format, top_amount):
    if output_format == "human" or "tab":
        for game in sf.get_valid_games():
            calcs.show_rankings(game, number=top_amount, format=output_format)
    else:
        print("Format '" + output_format + "' not valid.")
        exit(1)
Ejemplo n.º 3
0
def display_game_rankings(game, output_format, top_amount):
    """Display rankings for a single game as defined by format."""
    if output_format == "human" or "tab":
        calcs.show_rankings(game, number=top_amount, format=output_format)
    else:
        print("Format '" + output_format + "' not valid.")
        exit(1)
def display_game_rankings(game, output_format, top_amount):
    """Display rankings for a single game as defined by format."""
    if output_format == "human" or "tab":
        calcs.show_rankings(game, number=top_amount, format=output_format)
    else:
        print("Format '" + output_format + "' not valid.")
        exit(1)