Merge pull request #1285 from lnbits/gertyhotfix

Gerty timestamp was being saved as an int
This commit is contained in:
Arc 2023-01-04 12:26:10 +00:00 committed by GitHub
commit 8771c1b147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ async def get_mempool_info(endPoint: str, gerty) -> Optional[Mempool]:
mempool_id, mempool_id,
json.dumps(response.json()), json.dumps(response.json()),
endPoint, endPoint,
int(time.time()), time.time(),
gerty.mempool_endpoint, gerty.mempool_endpoint,
), ),
) )
@ -128,7 +128,7 @@ async def get_mempool_info(endPoint: str, gerty) -> Optional[Mempool]:
"UPDATE gerty.mempool SET data = ?, time = ? WHERE endpoint = ? AND mempool_endpoint = ?", "UPDATE gerty.mempool SET data = ?, time = ? WHERE endpoint = ? AND mempool_endpoint = ?",
( (
json.dumps(response.json()), json.dumps(response.json()),
int(time.time()), time.time(),
endPoint, endPoint,
gerty.mempool_endpoint, gerty.mempool_endpoint,
), ),