Skip to content

Commit

Permalink
fix: elg and perm
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Nov 25, 2024
1 parent f8dceca commit d537c0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions typings/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
# )
2 changes: 1 addition & 1 deletion util/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit d537c0e

Please sign in to comment.