Skip to content

Commit

Permalink
user creation: fixed incorrect "displayname" param (#240)
Browse files Browse the repository at this point in the history
Fixes #239

Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Apr 5, 2024
1 parent 8ad89cb commit bd10544
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion nc_py_api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd10544

Please sign in to comment.