Exemplo n.º 1
0
def graph_report_year(year, year_lenth):
    year_lenth = year_lenth + 1
    start_date, end_date = util.find_dates(year, 1, 11 * year_lenth)
    graph_report(start_date, end_date)
Exemplo n.º 2
0
def graph_report_this_year():
    today = datetime.datetime.now() + relativedelta.relativedelta(months=0)
    start_date, end_date = util.find_dates(today.year, 1, 11)
    graph_report(start_date, end_date)
Exemplo n.º 3
0
def graph_report_past_year(year, month):

    start_date, end_date = util.find_dates(year, month, -12)
    graph_report(start_date, end_date)
Exemplo n.º 4
0
def graph_report_months(year, month, month_lenth=0):

    start_date, end_date = util.find_dates(year, month, month_lenth)
    graph_report(start_date, end_date)
Exemplo n.º 5
0
def graph_report_past_6_month(year, month):

    start_date, end_date = util.find_dates(year, month, -6)
    graph_report(start_date, end_date)