Skip to content

Commit

Permalink
Merge pull request #687 from FreeTAKTeam/542-qr-code-certificate-down…
Browse files Browse the repository at this point in the history
…load-location-not-correct-or-not-available

fixed qr code generation
  • Loading branch information
naman108 authored Mar 30, 2024
2 parents fff91b1 + e99e0e9 commit 81952cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -1901,6 +1901,9 @@ def stop(self):
def start(self, APIPipea, CommandPipea, IP, Port, starttime, factory):
print('running api')

#ObjectFactory.configure(factory)
#tracing_provider = ObjectFactory.get_instance("TracingProvider")
#super().start(factory, tracing_provider)
super().start()
self.initialize_connections(APPLICATION_PROTOCOL)
ObjectFactory.configure(factory)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "FreeTAKServer"
version = "2.1.02"
version = "2.1.03"
description = "An open source server for the TAK family of applications."
authors = ["FreeTAKTeam <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 81952cf

Please sign in to comment.