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, "hash": self.hash,
"cid": self.cid.serialize_v1(), "cid": self.cid.serialize_v1(),
"status": self.status, "status": self.status,
"updated": self.updated, "updated": self.updated.isoformat(),
"created": self.created, "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._config import MYSQL_URI, MYSQL_DATABASE
from app.core.logger import make_log 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) Session = sessionmaker(bind=engine)