diff --git a/typings/activity.py b/typings/activity.py index 22a29dc..a9d9bc8 100644 --- a/typings/activity.py +++ b/typings/activity.py @@ -83,12 +83,12 @@ class Activity(BaseModel): url: Optional[str | None] = None special: Optional[Special | None] = None - def log(self, actor: str, ip: str): - detail = f"""User {self.creator} created activity {self.name} at {self.createdAt}. (ID: {self._id})""" - return ZVMSLog( - user=actor, - detail=detail, - log_type=LogType.CreateActivity, - ip=ip, - affected=list(map(lambda x: x.id, self.members)) - ) + # def log(self, actor: str, ip: str): + # detail = f"""User {self.creator} created activity {self.name} at {self.createdAt}. (ID: {self._id})""" + # return ZVMSLog( + # user=actor, + # detail=detail, + # log_type=LogType.CreateActivity, + # ip=ip, + # affected=list(map(lambda x: x.id, self.members)) + # ) diff --git a/util/cert.py b/util/cert.py index bbe0f07..321bf2c 100644 --- a/util/cert.py +++ b/util/cert.py @@ -46,8 +46,8 @@ def rsa_decrypt(ciphertext): def jwt_encode( id: str, - permissions: list[str], eligibility: list[str], + permissions: list[str], type: Optional[str] = "long", ): duration = (