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

View File

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

View File

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

View File

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

View File

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