Skip to content

Commit

Permalink
Removed deepdiff
Browse files Browse the repository at this point in the history
No more mandatory VSCODE.

You should download it and fix my script tbh.
  • Loading branch information
UltimaHoarder committed Apr 16, 2021
1 parent 87237e2 commit 62e9a7e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 1 addition & 4 deletions helpers/main_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ python-dateutil
lxml
mergedeep
jsonpickle
deepdiff[murmur]
numpy==1.19.3
ujson
sqlalchemy==1.3.23
Expand Down

0 comments on commit 62e9a7e

Please sign in to comment.