示例#1
0
def draw_graphs():
    """Generate graphs for all statistics groups."""
    if not os.path.exists(APP.config['GRAPH_STORAGE_FOLDER']):
        os.makedirs(APP.config['GRAPH_STORAGE_FOLDER'])

    for group in static.STATISTIC_GROUPS:
        statistic_plots.create_plot(group)
示例#2
0
def draw_graphs():
    """Generate graphs for all statistics groups."""
    if not os.path.exists('eisitirio/'+APP.config['GRAPH_STORAGE_FOLDER']):
        os.makedirs('eisitirio/'+APP.config['GRAPH_STORAGE_FOLDER'])

    for group in static.STATISTIC_GROUPS:
        statistic_plots.create_plot(group)
示例#3
0
def graph_sales():
    """Render a graph showing sales statistics

    Shows statistics for number of tickets Available, Ordered, Paid, Collected,
    and Cancelled, plus the length of the waiting list.
    """
    return statistic_plots.create_plot('Sales')
示例#4
0
def graph_sales():
    """Render a graph showing sales statistics

    Shows statistics for number of tickets Available, Ordered, Paid, Collected,
    and Cancelled, plus the length of the waiting list.
    """
    return statistic_plots.create_plot('Sales')
示例#5
0
def graph_payments():
    """Render graph showing payment statistics.

    Shows how many tickets have been paid for by each payment method.
    """
    return statistic_plots.create_plot('Payments')
示例#6
0
def graph_colleges():
    """Render graph showing statistics on users' colleges.

    Shows how many users are registered from each college.
    """
    return statistic_plots.create_plot('Colleges')
示例#7
0
def graph_payments():
    """Render graph showing payment statistics.

    Shows how many tickets have been paid for by each payment method.
    """
    return statistic_plots.create_plot('Payments')
示例#8
0
def graph_colleges():
    """Render graph showing statistics on users' colleges.

    Shows how many users are registered from each college.
    """
    return statistic_plots.create_plot('Colleges')