deleted prints

This commit is contained in:
Ben Arc 2021-06-24 01:49:39 +01:00
parent 06f05c75bb
commit a78d2b1322
5 changed files with 0 additions and 15 deletions

View File

@ -107,7 +107,6 @@
})
},
openURL: function (url) {
console.log(url)
return Quasar.utils.openURL(url)
},
initCamera() {
@ -147,7 +146,6 @@
},
launch() {
self = this
console.log('poo')
LNbits.api
.request(
'GET',
@ -172,7 +170,6 @@
created: function () {
self = this
self.copilot = JSON.parse(localStorage.getItem('copilot'))
console.log(localStorage.getItem('inkey'))
LNbits.api
.request(
'GET',
@ -194,8 +191,6 @@
})
this.connectionBitStamp.onmessage = function (e) {
console.log(JSON.parse(e.data).data.price)
console.log(self.copilot)
if (self.copilot.show_price) {
if (self.copilot.show_price == 'btcusd') {
self.price = String(
@ -259,7 +254,6 @@
}
this.connection = new WebSocket(localUrl)
this.connection.onmessage = function (e) {
console.log(e.data)
res = e.data.split('-')
if (res[0] == 'rocket') {
addTask(['40%', '/copilot/static/rocket.gif', res[1]])

View File

@ -478,7 +478,6 @@
},
sendFormDataCopilot: function () {
var self = this
console.log(self.formDialogCopilot.data.animation1threshold)
if (self.formDialogCopilot.data.id) {
this.updateCopilot(
self.g.user.wallets[0].adminkey,
@ -500,7 +499,6 @@
updatedData[property] = data[property]
}
if (property == 'animation1threshold' && data[property]) {
console.log(data[property])
updatedData[property] = parseInt(data[property])
}
if (property == 'animation2threshold' && data[property]) {
@ -510,7 +508,6 @@
updatedData[property] = parseInt(data[property])
}
}
console.log(updatedData)
LNbits.api
.request('POST', '/copilot/api/v1/copilot', wallet, updatedData)
.then(function (response) {
@ -595,13 +592,11 @@
updateCopilot: function (wallet, data) {
var self = this
var updatedData = {}
console.log(data)
for (const property in data) {
if (data[property]) {
updatedData[property] = data[property]
}
if (property == 'animation1threshold' && data[property]) {
console.log(data[property])
updatedData[property] = parseInt(data[property])
}
if (property == 'animation2threshold' && data[property]) {
@ -611,7 +606,6 @@
updatedData[property] = parseInt(data[property])
}
}
console.log(updatedData)
LNbits.api
.request(

View File

@ -118,7 +118,6 @@
},
fullscreenToggle: function () {
self = this
console.log(this.fullscreen_cam)
self.animationBTN(String(this.fullscreen_cam))
if (this.fullscreen_cam) {
this.fullscreen_cam = false

View File

@ -40,7 +40,6 @@ connected_websockets = defaultdict(set)
@copilot_ext.websocket("/ws/<id>/")
async def wss(id):
copilot = await get_copilot(id)
print(copilot)
if not copilot:
return "", HTTPStatus.FORBIDDEN
global connected_websockets

View File

@ -45,7 +45,6 @@ from .crud import (
}
)
async def api_copilot_create_or_update(copilot_id=None):
print("dfbad")
if not copilot_id:
copilot = await create_copilot(user=g.wallet.user, **g.data)
return jsonify(copilot._asdict()), HTTPStatus.CREATED