Commit 374511dc693403ff5692c6459b22011884a7e808

Authored by Leits
1 parent 13ff46a4

Fix syntax error EOL in get_document_by_id

@@ -52,7 +52,7 @@ def get_document_by_id(data, doc_id): @@ -52,7 +52,7 @@ def get_document_by_id(data, doc_id):
52 return document 52 return document
53 for complaint in award.get('complaints', []): 53 for complaint in award.get('complaints', []):
54 for document in complaint.get('documents', []): 54 for document in complaint.get('documents', []):
55 - if doc_id in document.get('title, ''): 55 + if doc_id in document.get('title', ''):
56 return document 56 return document
57 raise Exception('Document with id {} not found'.format(doc_id)) 57 raise Exception('Document with id {} not found'.format(doc_id))
58 58
Please register or login to post a comment