1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 23:27:45 +01: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): 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()