예제 #1
0
파일: run.py 프로젝트: rowanv/giraffe_dash
def read_customers_lost_by_country():
    this_table = Table(connection, q.query_customers_lost_by_country)
    columns = ['Country', 'Number of Customers Lost']
    html_rep = this_table.get_html_rep(columns)
    return html_rep
예제 #2
0
파일: run.py 프로젝트: rowanv/giraffe_dash
def read_sales_by_genre():
    this_table = Table(connection, q.query_sales_by_movie)
    columns = ['Category', 'Total Sales']
    html_rep = this_table.get_html_rep(columns)
    return html_rep
예제 #3
0
파일: run.py 프로젝트: rowanv/giraffe_dash
def read_films_in_inventory_most_rented():
    this_table = Table(connection, q.query_top_rented_films)
    columns = ['Film ID', 'Title', 'Release Year', 'Number of Rentals']
    html_rep = this_table.get_html_rep(columns)
    return html_rep