Couple little bugs
This commit is contained in:
parent
361a87110b
commit
83c4f619ae
3 changed files with 10 additions and 5 deletions
|
|
@ -13,7 +13,6 @@ from .crud import get_copilot
|
||||||
@copilot_ext.route("/lnurl/<cp_id>", methods=["GET"])
|
@copilot_ext.route("/lnurl/<cp_id>", methods=["GET"])
|
||||||
async def lnurl_response(cp_id):
|
async def lnurl_response(cp_id):
|
||||||
cp = await get_copilot(cp_id)
|
cp = await get_copilot(cp_id)
|
||||||
print(cp)
|
|
||||||
if not cp:
|
if not cp:
|
||||||
return jsonify({"status": "ERROR", "reason": "Copilot not found."})
|
return jsonify({"status": "ERROR", "reason": "Copilot not found."})
|
||||||
|
|
||||||
|
|
@ -47,7 +46,7 @@ async def lnurl_callback(cp_id):
|
||||||
).dict()
|
).dict()
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
elif amount_received / 1000 > 50000000:
|
elif amount_received / 1000 > 10000000:
|
||||||
return (
|
return (
|
||||||
jsonify(
|
jsonify(
|
||||||
LnurlErrorResponse(
|
LnurlErrorResponse(
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,10 @@
|
||||||
>
|
>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="row">
|
<div
|
||||||
|
class="row"
|
||||||
|
v-if="formDialogCopilot.data.animation1threshold > 0"
|
||||||
|
>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<q-select
|
<q-select
|
||||||
filled
|
filled
|
||||||
|
|
@ -268,7 +271,10 @@
|
||||||
>
|
>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="row">
|
<div
|
||||||
|
class="row"
|
||||||
|
v-if="formDialogCopilot.data.animation2threshold > formDialogCopilot.data.animation1threshold"
|
||||||
|
>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<q-select
|
<q-select
|
||||||
filled
|
filled
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,4 @@ async def ws_compose(copilot_id):
|
||||||
|
|
||||||
async def updater(data, comment, copilot):
|
async def updater(data, comment, copilot):
|
||||||
global socket_relay
|
global socket_relay
|
||||||
socket_relay[copilot] = shortuuid.uuid()[:5] + "-" + data + "-" + comment
|
socket_relay[copilot] = shortuuid.uuid()[:5] + "-" + str(data) + "-" + str(comment)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue