mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
Couple little bugs
This commit is contained in:
@@ -13,7 +13,6 @@ from .crud import get_copilot
|
||||
@copilot_ext.route("/lnurl/<cp_id>", methods=["GET"])
|
||||
async def lnurl_response(cp_id):
|
||||
cp = await get_copilot(cp_id)
|
||||
print(cp)
|
||||
if not cp:
|
||||
return jsonify({"status": "ERROR", "reason": "Copilot not found."})
|
||||
|
||||
@@ -47,7 +46,7 @@ async def lnurl_callback(cp_id):
|
||||
).dict()
|
||||
),
|
||||
)
|
||||
elif amount_received / 1000 > 50000000:
|
||||
elif amount_received / 1000 > 10000000:
|
||||
return (
|
||||
jsonify(
|
||||
LnurlErrorResponse(
|
||||
|
@@ -223,7 +223,10 @@
|
||||
>
|
||||
<q-card>
|
||||
<q-card-section>
|
||||
<div class="row">
|
||||
<div
|
||||
class="row"
|
||||
v-if="formDialogCopilot.data.animation1threshold > 0"
|
||||
>
|
||||
<div class="col">
|
||||
<q-select
|
||||
filled
|
||||
@@ -268,7 +271,10 @@
|
||||
>
|
||||
<q-card>
|
||||
<q-card-section>
|
||||
<div class="row">
|
||||
<div
|
||||
class="row"
|
||||
v-if="formDialogCopilot.data.animation2threshold > formDialogCopilot.data.animation1threshold"
|
||||
>
|
||||
<div class="col">
|
||||
<q-select
|
||||
filled
|
||||
|
@@ -57,4 +57,4 @@ async def ws_compose(copilot_id):
|
||||
|
||||
async def updater(data, comment, copilot):
|
||||
global socket_relay
|
||||
socket_relay[copilot] = shortuuid.uuid()[:5] + "-" + data + "-" + comment
|
||||
socket_relay[copilot] = shortuuid.uuid()[:5] + "-" + str(data) + "-" + str(comment)
|
||||
|
Reference in New Issue
Block a user