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

Commit 1b0b0c7

Browse files
committed
fix: add username parameter to user creation
1 parent 631da8a commit 1b0b0c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

print_queue_api_client/tables/user_table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def get(self, key="all"):
1111

1212
def create(
1313
self,
14+
username,
1415
email,
1516
name,
1617
short_name=None,
@@ -19,7 +20,7 @@ def create(
1920
score_editable=None,
2021
):
2122
# User details construction
22-
details = {"email": email, "name": name, "short_name": short_name}
23+
details = {"username": username, "email": email, "name": name, "short_name": short_name}
2324

2425
if user_score is not None:
2526
details["user_score"] = user_score

0 commit comments

Comments
 (0)