Skip to content

Commit

Permalink
fixed qr code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
naman108 committed Mar 24, 2024
1 parent 5ef0676 commit bc96b29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

@page.route('/GenerateQR', methods=['GET'])
def generate_qr():
datapackage_id = request.args.get('datapackage_id')
dp = RestAPICommunicationController().make_request("GetEnterpriseSyncMetaData", "", {"id": datapackage_id}).get_value("objectmetadata")
datapackage_hash = request.args.get('datapackage_hash')
resp = RestAPICommunicationController().make_request("GetEnterpriseSyncMetaData", "", {"objecthash": datapackage_hash})
dp = resp.get_value("objectmetadata")
qr = qrcode.QRCode(
version=1,
box_size=10,
Expand Down

0 comments on commit bc96b29

Please sign in to comment.