diff --git a/crc/__init__.py b/crc/__init__.py index ebd7e0a5..0ca1dd0c 100644 --- a/crc/__init__.py +++ b/crc/__init__.py @@ -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."""