iSPIRT / NPNT-Provisional-testing-tool

A simple and easy tool to perform a basic check of NPNT/ Digital Sky compliance. The App is a checklist to verify basic NPNT work and is limited to NPNT verification, PA, PIN check and Flight log signature Verification.
12 stars 20 forks source link

Please use ordered dictionary #19

Open rohang1997 opened 5 years ago

rohang1997 commented 5 years ago

In offline tool, there is issue where signed json log is being shuffled due to which signature is not getting verified. The best way to do so is, Please import OrderedDict like- from collections import OrderedDict

Under verify_flight_log_signature_objs function in helper.py instead of loading it simple way, please load like- json_data = json.loads(log_object, object_pairs_hook = OrderedDict)

This will ensure that json is not shuffled and it will help to make it compatible with python 3.5 too.

Thanks