Update old_manifest.py

This commit is contained in:
iranl
2025-09-11 22:04:10 +02:00
committed by GitHub
parent b8e5522826
commit 3444641129

View File

@@ -7,7 +7,7 @@ args = parser.parse_args()
with open('ota/old/manifest.json', 'r+') as json_file:
data = json.load(json_file)
data[str(int((float(args.version)*100)+0.1))] = args.version
data[str(args.version)] = args.version
data2 = sorted(data.items(), reverse=True)
sorted_dict = {}
k = 6
@@ -17,4 +17,4 @@ with open('ota/old/manifest.json', 'r+') as json_file:
k = k - 1
json_file.seek(0)
json.dump(sorted_dict, json_file, indent=4)
json_file.truncate()
json_file.truncate()