dev@locazia: fix content json_format time
This commit is contained in:
parent
ebe0d149e0
commit
1933ddea26
|
|
@ -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(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue