Skip to content

Commit

Permalink
Fixed WA updater edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 25, 2019
1 parent 15922ac commit b51175e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CB/WeakAura.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def check_updates(self):
raise RuntimeError
for aura in payload:
if 'username' in aura and (not self.username or aura['username'] != self.username):
if not aura['slug'] in self.waList:
aura['slug'] = aura['_id']
if aura['version'] > self.waList[aura['slug']] and \
(not aura['slug'] in self.waIgnored or
(aura['slug'] in self.waIgnored and aura['version'] != self.waIgnored[aura['slug']])):
Expand Down

0 comments on commit b51175e

Please sign in to comment.