Couple little bugs

This commit is contained in:
Ben Arc
2021-04-20 17:43:33 +01:00
parent 361a87110b
commit 83c4f619ae
3 changed files with 10 additions and 5 deletions

View File

@@ -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(

View File

@@ -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

View File

@@ -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)