mirror of
https://github.com/Noettore/lagomareGateKeeperBot.git
synced 2025-10-16 20:16:39 +02:00
Fix unit tests
This commit is contained in:
@@ -28,11 +28,11 @@ class User:
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, gid: str, data: dict):
|
||||
def from_dict(cls, uid: str, data: dict):
|
||||
credentials = Credential.from_dict(data.get("credentials", {}))
|
||||
grants = {gate: Grant.from_dict(grant) for gate, grant in data.get("grants", {}).items()}
|
||||
return cls(
|
||||
uid=gid,
|
||||
uid=uid,
|
||||
role=Role(data.get("role", Role.GUEST)),
|
||||
credentials=credentials,
|
||||
grants=grants,
|
||||
|
Reference in New Issue
Block a user