コード例 #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
ファイル: cron.py プロジェクト: gwynethbradbury/ouss_ball
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')