From de4386795e726a3e9f0ba9b32e4ca931a05e6336 Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Tue, 24 Sep 2024 17:18:16 +0100 Subject: [PATCH] Make script/import-all-data use run_all_import_scripts under the hood --- script/import-all-data | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/script/import-all-data b/script/import-all-data index 9a71549fb..87340a784 100755 --- a/script/import-all-data +++ b/script/import-all-data @@ -6,15 +6,4 @@ set -e # check that we are in the expected directory cd `dirname $0`/.. -./manage.py import_areas -./manage.py import_new_constituencies -./manage.py import_mps - -COMMANDS=$(find hub/management/commands/ -name 'import_*' -printf '%f\n' | sed 's#[.]py##') - -for COMMAND in $COMMANDS -do - if [ "$COMMAND" != "import_areas" ] && [ "$COMMAND" != "import_mps" ] && [ "$COMMAND" != "import_new_constituencies" ]; then - ./manage.py "$COMMAND" - fi -done +script/dev-command ./manage.py run_all_import_scripts $@