def layout_error_logs():
    print("Errors:")
    repeat_separator()
    for items in error_log_perc():
        print("The total errors for the date'" + str(items[1]) +
              "' are " + str(items[0]) + '.')
    repeat_separator()
def layout_top_three_authors():
    print("Top Authors:")
    repeat_separator()
    for items in fetch_top_three_authors():
        print(" The total views for the author '" + str(items[0]) + "' are " +
              str(items[1]) + '.\n')
    repeat_separator()
Exemplo n.º 3
0
def layout_top_three_articles():
    print("Top articles:")
    repeat_separator()
    for items in fetch_top_three_articles():
        print(" The total number of views for the article '" + str(items[1]) +
              "' by the author '" + str(items[3]) + "' on the page '" +
              str(items[2]) + "' are " + str(items[0]) + ".\n")
    repeat_separator()