10 lines
297 B
Python
10 lines
297 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()
|
|
db.close()
|