Skip to content

Commit

Permalink
Heroku: Filesystem debug
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin403 committed Sep 13, 2020
1 parent 611a2d8 commit 54285a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@ def process_cv(self, file_path):
# cv meta
meta = {"hash": None}

print('before hashhhhhhhhhhhhhhh')

# identify file uniquely by content
file_hash = hashlib.md5(open(file_path, "rb").read()).hexdigest()
print('after hashhhhhhhhhhhhhhh', file_hash)

meta["hash"] = file_hash
self.dispatch("file:hash", "hash", "File hash computed.", file_hash)

Expand Down
2 changes: 2 additions & 0 deletions web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def job_start(job):

# parse cv
parser = Parser(emit=emit)
print ('FILEEEEEEEEEEEEEPATH:', filepath)
print ('EMITTTTTTTTTTTT:', emit)
parser.process_cv(filepath)

# file processing done
Expand Down

0 comments on commit 54285a2

Please sign in to comment.