Kevin Burnett 353ba4cd31 avoid print statements, generally (#784)
* avoid print statements, generally

* remove test for empty main script

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-12-01 06:24:11 -08:00

22 lines
486 B
Python

import time
from spiffworkflow_backend import create_app
from spiffworkflow_backend.data_migrations.version_1_3 import VersionOneThree
def main() -> None:
app = create_app()
start_time = time.time()
with app.app_context():
VersionOneThree().run()
end_time = time.time()
app.logger.debug(
f"done running data migration from ./bin/data_migrations/version_1_3.py. took {end_time - start_time} seconds"
)
if __name__ == "__main__":
main()