dev@locazia: fix content json_format time

This commit is contained in:
user 2024-03-08 15:18:28 +03:00
parent ebe0d149e0
commit 1933ddea26
2 changed files with 3 additions and 3 deletions

View File

@ -70,6 +70,6 @@ class StoredContent(AlchemyBase):
"hash": self.hash,
"cid": self.cid.serialize_v1(),
"status": self.status,
"updated": self.updated,
"created": self.created,
"updated": self.updated.isoformat(),
"created": self.created.isoformat(),
}

View File

@ -8,7 +8,7 @@ from sqlalchemy.sql import text
from app.core._config import MYSQL_URI, MYSQL_DATABASE
from app.core.logger import make_log
engine = create_engine(MYSQL_URI, echo=True)
engine = create_engine(MYSQL_URI) #, echo=True)
Session = sessionmaker(bind=engine)