habitmove/loop/migration.py

10 lines
282 B
Python
Raw Normal View History

2021-08-27 08:55:31 +00:00
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()