]>
us-delaporte.pagekite.me Git - matrix-fridge-bot.git/blob - matrix_fridge_bot/tasks.py
74bb3048ad7d6a5b03d0672e2bb7ae8fe47610aa
3 from invoke
import task
9 DATA_DIR
= os
.environ
.get('MATRIX_DATA_DIR', '')
10 DB_FILE
= os
.environ
.get('MATRIX_DB_FILE', 'fridge.db')
11 db_file
= os
.path
.join(DATA_DIR
, DB_FILE
)
17 '''Add food to the fridge'''
18 result
= DATA
.add(task
)
24 '''List good things to eat in the fridge'''
32 result
= DATA
.to_toss()
39 result
= DATA
.remove(item
)
45 result
= DATA
.filter(term
)
51 print(DATA
.get_db_file())