ran black

This commit is contained in:
Ben Arc
2021-07-03 15:01:16 +01:00
parent 8619da29cf
commit 483c4b6586
2 changed files with 10 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ from lnbits.decorators import check_user_exists, validate_uuids
from pyngrok import conf, ngrok
from . import ngrok_ext
def log_event_callback(log):
string = str(log)
string2 = string[string.find('url="https') : string.find('url="https') + 40]
@@ -12,16 +13,17 @@ def log_event_callback(log):
string3 = string2
string4 = string3[4:]
global string5
string5 = string4.replace( '"', '' )
string5 = string4.replace('"', "")
conf.get_default().log_event_callback = log_event_callback
ngrok_tunnel = ngrok.connect(5000)
@ngrok_ext.route("/")
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
# row = await db.fetchone("SELECT * FROM ngrok")