habitmove/loop/migration.py

11 lines
297 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()
2021-08-27 21:33:21 +00:00
db.close()