Skip to content

Commit

Permalink
Tweak version check
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Aug 28, 2019
1 parent 21ab8e2 commit c29a125
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CB/WeakAura.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def parse_storage(self):
for _, line in enumerate(fp):
if '["url"]' in line:
search = self.url.search(line)
if search.group(1) and search.group(2):
if search.group(1) and search.group(2) and \
(search.group(1) not in self.wa_list.keys() or
int(search.group(2)) > self.wa_list[search.group(1)]):
self.wa_list[search.group(1)] = int(search.group(2))
self.wa_ids.append(search.group(1))
self.wa_ids = list(dict.fromkeys(self.wa_ids))
Expand Down

0 comments on commit c29a125

Please sign in to comment.