cli entry point for temp_migration_service.

Ultimately, this will call the real service.
This commit is contained in:
mike cullerton 2022-01-04 07:28:23 -05:00
parent 7f9519736c
commit 110e2c56f8
1 changed files with 8 additions and 0 deletions

View File

@ -106,6 +106,14 @@ print('TESTING = ', app.config['TESTING'])
print('TEST_UID = ', app.config['TEST_UID']) print('TEST_UID = ', app.config['TEST_UID'])
print('ADMIN_UIDS = ', app.config['ADMIN_UIDS']) print('ADMIN_UIDS = ', app.config['ADMIN_UIDS'])
@app.cli.command()
def load_files_from_filesystem():
"""Load file data into the database."""
from crc.services.temp_migration_service import FromFilesystemService, SYNC_FILE_ROOT
FromFilesystemService().update_file_metadata_from_filesystem(SYNC_FILE_ROOT)
@app.cli.command() @app.cli.command()
def load_example_data(): def load_example_data():
"""Load example data into the database.""" """Load example data into the database."""