mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53: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
|
||||
class Group(BaseModel):
|
||||
name: str
|
||||
users: List[str]
|
||||
|
||||
|
||||
class Server(BaseModel):
|
||||
name: str
|
||||
ready: bool
|
||||
@@ -27,7 +22,7 @@ class Server(BaseModel):
|
||||
class User(BaseModel):
|
||||
name: str
|
||||
admin: bool
|
||||
groups: List[Group]
|
||||
groups: List[str]
|
||||
server: Optional[str]
|
||||
pending: Optional[str]
|
||||
last_activity: datetime
|
||||
|
Reference in New Issue
Block a user