]>
us-delaporte.pagekite.me Git - matrix-chore-bot.git/blob - matrix_chore_bot/tasks.py
3 from invoke
import task
9 DATA_DIR
= os
.environ
.get('MATRIX_DATA_DIR', '')
10 DB_FILE
= os
.environ
.get('MATRIX_DB_FILE', 'chore.db')
11 db_file
= os
.path
.join(DATA_DIR
, DB_FILE
)
17 result
= DATA
.add(task
)
23 result
= DATA
.check(task
)
28 result
= DATA
.done(task
)
33 result
= DATA
.undo(task
)
38 result
= DATA
.remove(task
)
49 result
= DATA
.filter(term
)
55 print(DATA
.get_db_file())