mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 19:36:15 +02:00
ran black
This commit is contained in:
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user