From bd10544ae1cfd0de0c3bcdce522ad0b396335ae8 Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:19:08 +0300 Subject: [PATCH] user creation: fixed incorrect "displayname" param (#240) Fixes #239 Signed-off-by: Alexander Piskun --- CHANGELOG.md | 8 +++++++- nc_py_api/users.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d0f49d..762ee534 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,19 @@ All notable changes to this project will be documented in this file. +## [0.12.1 - 2024-04-05] + +### Fixed + +- Incorrect `Display name` when creating user, which led to the parameter being ignored. #239 Thanks to @derekbuckley + ## [0.12.0 - 2024-04-02] Update with new features only for `NextcloudApp` class. #233 ### Added -- `ex_app.get_computation_device` function for retrieving GPU type(only with AppAPI `2.4.0`+). +- `ex_app.get_computation_device` function for retrieving GPU type(only with AppAPI `2.5.0`+). - `ex_app.integration_fastapi.fetch_models_task` are now public function, added `progress_init_start_value` param. - Global authentication when used now sets `request.scope["username"]` for easy use. diff --git a/nc_py_api/users.py b/nc_py_api/users.py index d9892c13..581477e3 100644 --- a/nc_py_api/users.py +++ b/nc_py_api/users.py @@ -378,5 +378,5 @@ def _create(user_id: str, display_name: str | None, **kwargs) -> dict[str, typin if k in kwargs: data[k] = kwargs[k] if display_name is not None: - data["displayname"] = display_name + data["displayName"] = display_name return data