diff --git a/print_queue_api_client/tables/user_table.py b/print_queue_api_client/tables/user_table.py index 9c51e4b..3ef275c 100644 --- a/print_queue_api_client/tables/user_table.py +++ b/print_queue_api_client/tables/user_table.py @@ -20,7 +20,10 @@ def create( score_editable=None, ): # User details construction - details = {"username": username, "email": email, "name": name, "short_name": short_name} + details = {"username": username, "email": email, "name": name} + + if short_name is not None: + details["short_name"] = short_name if user_score is not None: details["user_score"] = user_score diff --git a/pyproject.toml b/pyproject.toml index f2a73f9..36fcfbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0", "pandas>=1.5.2", "requests>=2.28.1"] build-backend = "setuptools.build_meta" [project] name = "print_queue_api_client" -version = "0.0.9" +version = "0.0.10" authors = [ { name="iForge IT", email="it.iforge@sheffield.ac.uk"}, { name="Dom RG", email="22130302+domRG@users.noreply.github.com" },