habitmove/loop/migration.py

10 lines
225 B
Python

import loop.tables as tables
import loop.habits as habits
def migrate(trackers, events):
db = tables.migrate("output.db")
if trackers is not None:
habits.migrate(db, trackers)
db.commit()
db.close()