ran black

This commit is contained in:
Ben Arc
2021-07-03 16:04:45 +01:00
parent 819fc43328
commit 03f0df681b
21 changed files with 152 additions and 61 deletions
+3 -1
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]
@@ -14,6 +15,7 @@ def log_event_callback(log):
global string5
string5 = string4.replace('"', "")
conf.get_default().log_event_callback = log_event_callback
ngrok_tunnel = ngrok.connect(5000)
@@ -23,4 +25,4 @@ ngrok_tunnel = ngrok.connect(5000)
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
return await render_template("ngrok/index.html", ngrok=string5)
return await render_template("ngrok/index.html", ngrok=string5)