Skip to content

Commit

Permalink
Remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed Oct 24, 2023
1 parent 7ee6d8b commit 3e2bfcc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion unstructured/ingest/pipeline/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def run(self, ingest_doc_dict: dict) -> t.Optional[str]:
global session_handle
doc = create_ingest_doc_from_dict(ingest_doc_dict)
filename = doc.filename
print(f"##### Checking if {filename} exists:")
if not self.read_config.re_download and filename.is_file() and filename.stat().st_size:
logger.info(f"File exists: {filename}, skipping download")
return filename
Expand Down
1 change: 0 additions & 1 deletion unstructured/ingest/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@


def get_ingest_doc_hash(json_as_dict: dict) -> str:
print(json_as_dict.keys())
hashed = hashlib.sha256(json_as_dict["filename"].encode()).hexdigest()[:32]
return hashed

0 comments on commit 3e2bfcc

Please sign in to comment.