From 62e9a7eb6e68dcafe3fcf07fe20221d7c14c0cf5 Mon Sep 17 00:00:00 2001 From: CRIMINAL Date: Fri, 16 Apr 2021 18:40:37 +0100 Subject: [PATCH] Removed deepdiff No more mandatory VSCODE. You should download it and fix my script tbh. --- README.md | 6 ------ helpers/main_helper.py | 5 +---- requirements.txt | 1 - 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 7be84d31..232f4724 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,6 @@ https://github.com/DIGITALCRIMINAL/OnlyFans/discussions/889 ## Running the app locally -You need to install C++ Build Tools for the deephash module. - -(I'll probably end up using something else since this is an annoying requirement) - -https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019 - From the project folder open CMD/Terminal and run the command below: `pip install -r requirements.txt` diff --git a/helpers/main_helper.py b/helpers/main_helper.py index 92cf5bc9..b37420bc 100644 --- a/helpers/main_helper.py +++ b/helpers/main_helper.py @@ -2,7 +2,6 @@ from types import SimpleNamespace from typing import Any, Tuple, Union -from deepdiff.deephash import DeepHash from sqlalchemy.ext.declarative import api from sqlalchemy.ext.declarative.api import declarative_base from classes.prepare_metadata import format_variables @@ -497,10 +496,8 @@ def get_config(config_path): file_name = os.path.basename(config_path) json_config = json.loads(json.dumps(make_settings.config( **json_config), default=lambda o: o.__dict__)) - hashed = DeepHash(json_config)[json_config] - hashed2 = DeepHash(json_config2)[json_config2] updated = False - if hashed != hashed2: + if json_config != json_config2: updated = True update_config(json_config, file_name=file_name) if not json_config: diff --git a/requirements.txt b/requirements.txt index 69041b28..b56f6198 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,6 @@ python-dateutil lxml mergedeep jsonpickle -deepdiff[murmur] numpy==1.19.3 ujson sqlalchemy==1.3.23