Skip to content

Commit

Permalink
Merge pull request #1206 from GSA/notify-admin-1505
Browse files Browse the repository at this point in the history
make user command
  • Loading branch information
ccostino authored Aug 9, 2024
2 parents fc87696 + f385260 commit f501b82
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,17 @@ def populate_annual_billing_with_the_previous_years_allowance(year):
)


@notify_command(name="dump-user-info")
@click.argument("user_email_address")
def dump_user_info(user_email_address):
user = get_user_by_email(user_email_address)
content = user.serialize()
with open("user_download.json", "wb") as f:
f.write(json.dumps(content).encode("utf8"))
f.close()
print("Successfully downloaded user info to user_download.json")


@notify_command(name="populate-annual-billing-with-defaults")
@click.option(
"-y",
Expand Down

0 comments on commit f501b82

Please sign in to comment.