mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 22:43:00 +00:00
User groups is List[str] not List[Group]
This commit is contained in:
@@ -7,11 +7,6 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
|
|
||||||
# https://jupyterhub.readthedocs.io/en/stable/_static/rest-api/index.html
|
# https://jupyterhub.readthedocs.io/en/stable/_static/rest-api/index.html
|
||||||
class Group(BaseModel):
|
|
||||||
name: str
|
|
||||||
users: List[str]
|
|
||||||
|
|
||||||
|
|
||||||
class Server(BaseModel):
|
class Server(BaseModel):
|
||||||
name: str
|
name: str
|
||||||
ready: bool
|
ready: bool
|
||||||
@@ -27,7 +22,7 @@ class Server(BaseModel):
|
|||||||
class User(BaseModel):
|
class User(BaseModel):
|
||||||
name: str
|
name: str
|
||||||
admin: bool
|
admin: bool
|
||||||
groups: List[Group]
|
groups: List[str]
|
||||||
server: Optional[str]
|
server: Optional[str]
|
||||||
pending: Optional[str]
|
pending: Optional[str]
|
||||||
last_activity: datetime
|
last_activity: datetime
|
||||||
|
Reference in New Issue
Block a user