cli entry point for temp_migration_service.
Ultimately, this will call the real service.
This commit is contained in:
parent
7f9519736c
commit
110e2c56f8
|
@ -106,6 +106,14 @@ print('TESTING = ', app.config['TESTING'])
|
|||
print('TEST_UID = ', app.config['TEST_UID'])
|
||||
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()
|
||||
def load_example_data():
|
||||
"""Load example data into the database."""
|
||||
|
|
Loading…
Reference in New Issue