def get_week_delta(name, date, filename): """Returns total delta for date objects week.""" return database.get_total_delta(name, dates.dates_in_week(date), filename)
def get_month_delta(name, date, filename): """Returns total delta for date objects month.""" return database.get_total_delta(name, dates.dates_in_month(date), filename)
def get_day_delta(name, date, filename): """Returns total delta for date object.""" return database.get_total_delta(name, [date], filename)