mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-09-04 19:01:15 +00:00
fixed after merge
This commit is contained in:
@@ -1026,7 +1026,7 @@ def check_key_match(config_name):
|
|||||||
def generate_qrcode(config_name):
|
def generate_qrcode(config_name):
|
||||||
id = request.args.get('id')
|
id = request.args.get('id')
|
||||||
sem.acquire()
|
sem.acquire()
|
||||||
db = TinyDB('db/' + config_name + '.json')
|
db = TinyDB(os.path.join(db_path, config_name + ".json"))
|
||||||
peers = Query()
|
peers = Query()
|
||||||
get_peer = db.search(peers.id == id)
|
get_peer = db.search(peers.id == id)
|
||||||
config = get_dashboard_conf()
|
config = get_dashboard_conf()
|
||||||
|
Reference in New Issue
Block a user