Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mjishnu committed Oct 30, 2022
1 parent c394cf7 commit fe3f44c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe3f44c

Please sign in to comment.