Update system_api.py

pull/109/head
midoks 5 years ago
parent 7956c79239
commit 8e6fbaa774
  1. 6
      class/core/system_api.py

@ -605,11 +605,9 @@ class system_api:
old_list = old.split('.') old_list = old.split('.')
ret = 'none' ret = 'none'
# t = [0] * 3
isHasNew = True isHasNew = True
for i in range(3): if int(new_list[0]) == int(old_list[0]) and int(new_list[1]) == int(old_list[1]) and int(new_list[2]) == int(old_list[2]):
if int(new_list[i]) == int(old_list[i]): isHasNew = False
isHasNew = False
if isHasNew: if isHasNew:
return 'new' return 'new'

Loading…
Cancel
Save