Skip to content

Commit

Permalink
Fixed Plater updater #2 (close #381)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 14, 2024
1 parent 73ad59b commit d6faf6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CB/Wago.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, accountname):

def parse_storage_internal(self, data):
for script in data:
if script['url']:
if 'url' in script:
search = self.urlParser.search(script['url'])
if search is not None and search.group(1) and search.group(2) and 'ignoreWagoUpdate' not in script:
if 'skipWagoUpdate' in script:
Expand All @@ -80,8 +80,8 @@ def parse_storage(self):
self.parse_storage_internal(data)
if data := platerdata['profiles'][profile]['hook_data']:
self.parse_storage_internal(data)
if data := platerdata['profiles'][profile]['url']:
search = self.urlParser.search(data)
if 'url' in platerdata['profiles'][profile]:
search = self.urlParser.search(platerdata['profiles'][profile]['url'])
if (search is not None and search.group(1) and search.group(2) and
'ignoreWagoUpdate' not in platerdata['profiles'][profile]):
if 'skipWagoUpdate' in platerdata['profiles'][profile]:
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
from rich.terminal_theme import TerminalTheme

__version__ = '4.5.4'
__version__ = '4.5.5'
__license__ = 'GPLv3'
__copyright__ = '2019-2024, Paweł Jastrzębski <pawelj@iosphe.re>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit d6faf6e

Please sign in to comment.