From fe3f44cd22c46a6a329ca4ef6fab49acd5d747b9 Mon Sep 17 00:00:00 2001 From: m-jishnu Date: Sun, 30 Oct 2022 16:40:42 +0530 Subject: [PATCH] fixed minor bug --- utls.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utls.py b/utls.py index 28b84e1..056b65e 100644 --- a/utls.py +++ b/utls.py @@ -252,9 +252,10 @@ def latest_version(lst): app_data = dict() #{(name,version,type):full_name} final_data_get = dict() #{(name,version):full_name} for key, value in dict_data.items(): - if arch and value[2] == arch: - app_data[(value[0],value[1],value[-1].split('.')[1])] = key - final_data_get[(value[0],value[1])] = key + if arch: + if value[2] == arch: + app_data[(value[0],value[1],value[-1].split('.')[1])] = key + final_data_get[(value[0],value[1])] = key else: app_data[(value[0],value[1],value[-1].split('.')[1])] = key final_data_get[(value[0],value[1])] = key