mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-06 22:54:42 +00:00
* move data migration code out of bin so it can be reused in background processor * sleep for 5 minutes and update bpmn js to pull in some fixes from elizabeth * update spiff to pull in parser update to make it act like before --------- Co-authored-by: burnettk <burnettk@users.noreply.github.com>
22 lines
475 B
Python
22 lines
475 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()
|
|
print(
|
|
f"done running data migration from ./bin/data_migrations/version_1_3.py. took {end_time - start_time} seconds"
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|