Browse Source

pending=False on /sse payments.

atmext
fiatjaf 4 years ago
parent
commit
2894944b1e
  1. 2
      lnbits/core/views/api.py

2
lnbits/core/views/api.py

@ -164,7 +164,7 @@ async def api_payments_sse():
message = [f"event: {typ}".encode("utf-8")]
if data:
jdata = json.dumps(data._asdict())
jdata = json.dumps(dict(data._asdict(), pending=False))
message.append(f"data: {jdata}".encode("utf-8"))
yield b"\n".join(message) + b"\r\n\r\n"

Loading…
Cancel
Save