1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-30 22:50:14 +02:00

fixed after merge

This commit is contained in:
Galonza Peter 2021-12-27 00:32:53 +03:00
parent 8cc71913b3
commit c75854cb7b

View File

@ -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()