Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
fix: user creation tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
domRG committed Jan 14, 2023
1 parent 021c1f7 commit f769f30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion print_queue_api_client/tables/user_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"},
{ name="Dom RG", email="[email protected]" },
Expand Down

0 comments on commit f769f30

Please sign in to comment.