mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 17:55:48 +00:00
353ba4cd31
* avoid print statements, generally * remove test for empty main script --------- Co-authored-by: burnettk <burnettk@users.noreply.github.com>
22 lines
486 B
Python
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()
|