Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Print Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ClassDef bases NameLoad body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Slice Num If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases body Assign NameStore Num Assign NameStore Num Assign NameStore Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpBitAnd Call NameLoad keyword AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpBitAnd Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad attr TupleLoad Str Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpBitAnd Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad attr Call NameLoad Str If CompareEq NameLoad NameLoad body Assign NameStore Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword Str decorator_list NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad
N/A peewee * N/A datetime N/A datetimehelpers N/A sys N/A os N/A os.path N/A random N/A pathhelpers N/A N/A N/A pathhelpers get_data_pathname caloriesdb.db3 N/A _mydatabase N/A SqliteDatabase N/A N/A pathhelpers get_data_pathname caloriesdb.db3 N/A N/A N/A _mydatabase connect BaseDB N/A Model N/A Meta N/A N/A N/A database _mydatabase N/A N/A Calories N/A BaseDB N/A N/A mealtime N/A DateTimeField N/A calories N/A IntegerField N/A fooditem N/A CharField __str__ N/A N/A self N/A N/A N/A txt N/A N/A N/A str N/A self calories  KCal,  N/A N/A N/A N/A N/A N/A self mealtime time isoformat N/A 5 N/A N/A N/A len N/A self fooditem 0 N/A N/A txt N/A ,  N/A self fooditem N/A txt N/A TimeRange N/A N/A N/A DAY 1 N/A WEEK 2 N/A MONTH 3 N/A delete_entry N/A N/A self meal N/A N/A N/A delquery N/A N/A N/A N/A self delete where N/A N/A Q mealtime N/A meal mealtime N/A Q calories N/A meal calories N/A N/A N/A delquery execute N/A classmethod _get_date_time_range N/A N/A self timerange ref_datetime N/A N/A N/A N/A timerange N/A N/A self TimeRange DAY N/A N/A N/A N/A datetimehelpers get_full_day_datetime_range ref_datetime N/A N/A N/A timerange N/A N/A self TimeRange WEEK N/A N/A N/A N/A datetimehelpers get_full_week_datetime_range ref_datetime N/A N/A N/A timerange N/A N/A self TimeRange MONTH N/A N/A N/A N/A datetimehelpers get_full_month_datetime_range ref_datetime N/A N/A N/A AttributeError The timerange specified must be one of TimeRange.DAY, TimeRange.WEEK, TimeRange.MONTH N/A classmethod get_meals N/A N/A self timerange ref_datetime N/A N/A N/A N/A datetime datetime now N/A N/A N/A startdatetime enddatetime N/A N/A self _get_date_time_range timerange ref_datetime N/A N/A N/A N/A N/A N/A N/A self select where N/A N/A Q mealtime__gte startdatetime N/A Q mealtime__lte enddatetime order_by N/A mealtime desc N/A classmethod get_calories N/A N/A self timerange ref_datetime N/A N/A N/A N/A datetime datetime now N/A N/A N/A startdatetime enddatetime N/A N/A self _get_date_time_range timerange ref_datetime N/A ret N/A N/A N/A N/A N/A N/A self select where N/A N/A Q mealtime__gte startdatetime N/A Q mealtime__lte enddatetime aggregate N/A Sum calories N/A N/A ret None N/A N/A ret 0 N/A ret N/A classmethod gen_testcases N/A N/A self N/A N/A N/A j N/A range 29 -1 -1 N/A N/A td N/A N/A datetime timedelta j N/A enterdate N/A N/A N/A N/A N/A N/A datetime datetime today date td N/A num_meals N/A N/A random randint 5 8 N/A k N/A range num_meals N/A N/A cal N/A N/A random randint 40 450 N/A hrs N/A N/A random randint 7 23 N/A mins N/A N/A random randint 1 59 N/A enterdatetime N/A N/A N/A datetime datetime combine enterdate N/A N/A datetime time hrs mins N/A N/A N/A self create mealtime enterdatetime calories cal fooditem comment N/A classmethod N/A N/A N/A N/A Calories create_table True