Skip to content

Commit

Permalink
Adjust condition and fix unit test #186
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Feb 17, 2022
1 parent 4ecc8d0 commit 0a05979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echr/steps/get_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_documents_step(doc_id, progress, task):
else:
filename = "%s.pdf" % (doc_id[0].strip())
filename = os.path.join(folder, filename)
if (update and not os.path.isfile(filename)) or force:
if not os.path.isfile(filename) or force:
if doc_id[1]:
url = BASE_URL + "docx/?library=ECHR&filename=please_give_me_the_document.docx&id=" + doc_id[0].strip()
else:
Expand Down

0 comments on commit 0a05979

Please sign in to comment.