From 902fd1266194f6797941f31f2365b44a91574959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 18 Mar 2019 18:05:41 +0100 Subject: [PATCH] Removed unnecessary check --- CB/Core.py | 2 -- CB/WoWInterface.py | 1 - 2 files changed, 3 deletions(-) diff --git a/CB/Core.py b/CB/Core.py index 9f73f25..70be5c9 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -121,8 +121,6 @@ def update_addon(self, url, update, force): old = self.check_if_installed(url) if old: new = self.parse_url(old['URL']) - if hasattr(new, 'pending') and new.pending == '1': - new.currentVersion = old['Version'] oldversion = old['Version'] modified = self.check_checksum(url) if force or (new.currentVersion != old['Version'] and update and not modified): diff --git a/CB/WoWInterface.py b/CB/WoWInterface.py index 8447c94..af9fccc 100644 --- a/CB/WoWInterface.py +++ b/CB/WoWInterface.py @@ -16,7 +16,6 @@ def __init__(self, url): self.name = self.payload['UIName'] self.downloadUrl = self.payload['UIDownload'] self.currentVersion = self.payload['UIVersion'] - self.pending = self.payload['UIPending'] self.archive = None self.directories = []