From 984853900195e752953b19cf19df2d06994c233b Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Thu, 8 Dec 2022 11:47:14 -0500 Subject: [PATCH] Fix variable conflict --- dandiapi/api/management/commands/create_dev_dandiset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dandiapi/api/management/commands/create_dev_dandiset.py b/dandiapi/api/management/commands/create_dev_dandiset.py index 6fdb86354..ae635fbc1 100644 --- a/dandiapi/api/management/commands/create_dev_dandiset.py +++ b/dandiapi/api/management/commands/create_dev_dandiset.py @@ -13,9 +13,9 @@ @click.command() @click.option('--name', default='Development Dandiset') -@click.option('--owner', required=True, help='The email address of the owner') -def create_dev_dandiset(name: str, owner: str): - owner = User.objects.get(email=owner) +@click.option('--owner', 'email', required=True, help='The email address of the owner') +def create_dev_dandiset(name: str, email: str): + owner = User.objects.get(email=email) version_metadata = { 'description': 'An informative description',