habitmove/loop/migration.py

9 lines
282 B
Python

import loop.table_constructor as table_constructor
import loop.habit_migrator as habit_migrator
def migrate(trackers, events):
db = table_constructor.prepare_database("output.db")
if trackers is not None:
habit_migrator.create_habits(db, trackers)
db.commit()