Moved PeerJobs to using SQLAlchemy, haven't test PostgreSQL yet

This commit is contained in:
Donald Zou
2025-05-10 18:16:29 +08:00
parent 8367cba259
commit a0e15e1671
2 changed files with 132 additions and 66 deletions

View File

@@ -23,8 +23,8 @@ class PeerJob:
"Field": self.Field,
"Operator": self.Operator,
"Value": self.Value,
"CreationDate": self.CreationDate,
"ExpireDate": self.ExpireDate,
"CreationDate": self.CreationDate.strftime("%Y-%m-%d %H:%M:%S"),
"ExpireDate": (self.ExpireDate.strftime("%Y-%m-%d %H:%M:%S") if self.ExpireDate is not None else None),
"Action": self.Action
}