Beispiel #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)
Beispiel #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)
Beispiel #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')
Beispiel #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')
Beispiel #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')
Beispiel #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')
Beispiel #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')
Beispiel #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')