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