示例#1
0
def todo_add_unlimit(message, title):
    database = DB(os.environ['TODO_DB'])
    database.add(title, None)
示例#2
0
from tododb import DB
import os

dbname = os.environ['TODO_DB']
need_init = not os.path.exists(dbname)
database = DB(dbname)
if need_init:
    database.init()
#列追加、減少を自動反映
database.clean()

database.add('test-title1', '2020-06-01')
print(database.list())