From 2f53e9c0016372573f74ecde1f41530ea723c7bc Mon Sep 17 00:00:00 2001 From: aschroed Date: Fri, 5 Apr 2024 12:49:37 -0400 Subject: [PATCH] hotfix bugfix to support testing --- scripts/delete_item_or_fields.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/delete_item_or_fields.py b/scripts/delete_item_or_fields.py index 900d96e..73ef0e1 100644 --- a/scripts/delete_item_or_fields.py +++ b/scripts/delete_item_or_fields.py @@ -7,6 +7,7 @@ NOTE: can use patch_field_for_many_items script to delete a single field for many items but this script is more direct/flexible in some ways ''' +import sys import argparse from dcicutils.ff_utils import get_metadata, delete_metadata, delete_field from functions import script_utils as scu @@ -25,7 +26,7 @@ def get_args(args): def main(): # pragma: no cover - args = get_args() + args = get_args(sys.argv[1:]) auth = scu.authenticate(key=args.key, keyfile=args.keyfile, env=args.env) dry_run = True if args.dbupdate: