From b21564104ea1b9a033bfd8c85b60b820ae370f49 Mon Sep 17 00:00:00 2001 From: Ave Date: Thu, 28 May 2020 15:56:38 +0300 Subject: [PATCH] ctcci: hotfix --- ctcci/ctcci.py | 4 ++-- ctcci/requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 ctcci/requirements.txt diff --git a/ctcci/ctcci.py b/ctcci/ctcci.py index 448d3f9..2e76d15 100644 --- a/ctcci/ctcci.py +++ b/ctcci/ctcci.py @@ -2,7 +2,6 @@ import os import sys import shutil -import requests import json import subprocess from ctcconfig import * @@ -39,7 +38,8 @@ os.environ["DISTOK_EXTRACTED_DISCORD_PATH"] = WORK_APK_PATH os.makedirs(WORK_FOLDER, exist_ok=True) with open(os.path.join(REPO_FOLDER, "patchport-state.json")) as f: - VERSION = f["versioncode"] + STATE = json.load(f) + VERSION = STATE["versioncode"] BASE_APK_PATH = os.path.join(WORK_FOLDER, f"discord-base-{VERSION}") diff --git a/ctcci/requirements.txt b/ctcci/requirements.txt deleted file mode 100644 index 663bd1f..0000000 --- a/ctcci/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -requests \ No newline at end of file