Skip to content

Commit

Permalink
Update check-wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenspille authored Oct 17, 2022
1 parent 78d347c commit fb6106d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions check-wordpress
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,13 @@ def addon_status(conf: dict, type: str):
if addon.get('update') == "available":
ignore_param = f"wp_ignore_inactive_{type}s"
if conf[ignore_param] == True:
if addon.get('status') == 'inactive':
state = 0
else:
if addon.get('status') == 'active':
state = 2
addons_to_update.append(addon.get('name'))
else:
if addon.get('status') == 'inactive':
if addon.get('status') == 'inactive' and state == 0:
state = 1
else:
elif addon.get('status') == 'active':
state = 2
addons_to_update.append(f"{addon.get('name')}:{addon.get('status')}")

Expand Down

0 comments on commit fb6106d

Please sign in to comment.