Showing
1 changed file
with
4 additions
and
0 deletions
@@ -64,6 +64,10 @@ def get_document_by_id(data, doc_id): | @@ -64,6 +64,10 @@ def get_document_by_id(data, doc_id): | ||
64 | for document in complaint.get('documents', []): | 64 | for document in complaint.get('documents', []): |
65 | if doc_id in document.get('title', ''): | 65 | if doc_id in document.get('title', ''): |
66 | return document | 66 | return document |
67 | + for contract in data.get('contracts', []): | ||
68 | + for document in contract.get('documents', []): | ||
69 | + if doc_id in document.get('title', ''): | ||
70 | + return document | ||
67 | for award in data.get('awards', []): | 71 | for award in data.get('awards', []): |
68 | for document in award.get('documents', []): | 72 | for document in award.get('documents', []): |
69 | if doc_id in document.get('title', ''): | 73 | if doc_id in document.get('title', ''): |
Please
register
or
login
to post a comment