mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 20:14:59 +02:00
removed db reference
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
from quart import Blueprint
|
||||
from lnbits.db import Database
|
||||
|
||||
db = Database("ext_ngrok")
|
||||
|
||||
ngrok_ext: Blueprint = Blueprint(
|
||||
"ngrok", __name__, template_folder="templates"
|
||||
|
@@ -5,7 +5,6 @@ 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]
|
||||
@@ -15,7 +14,6 @@ def log_event_callback(log):
|
||||
global string5
|
||||
string5 = string4.replace('"', "")
|
||||
|
||||
|
||||
conf.get_default().log_event_callback = log_event_callback
|
||||
|
||||
ngrok_tunnel = ngrok.connect(5000)
|
||||
|
Reference in New Issue
Block a user