def do_check_version(self, args): """Check online for a newer release Usage: check_version Options: -h --help Show this help.""" print("Querying github API...") ver = check_version(True) if ver["error"]: print(ver["error"]) elif ver["up_to_date"]: print("You're running the latest version") else: print("A newer version is available!") print("You can download it using this link:") print(ver["download_url"])
def worker(self, queue): ThreadedBase.worker(self, queue) res = check_version() res["done"] = True queue.put(res)