Merge pull request #1285 from lnbits/gertyhotfix
Gerty timestamp was being saved as an int
This commit is contained in:
commit
8771c1b147
|
@ -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,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user