Merged
Changes from 1 commit
Show all changes
35 commits
Select commit Hold shift + click to select a range
d141a67
feat: add get_document and list_document functions
galz10Sep 27, 2022
1de3f02
fixed tests
galz10Sep 27, 2022
1b9324f
lint fix
galz10Sep 27, 2022
446e187
added tests and changed DocumentWrapper
galz10Sep 28, 2022
ed86e84
fixed failing test
galz10Sep 28, 2022
9fc848b
updated tests
galz10Sep 29, 2022
88001da
changed DocStrings and tests
galz10Sep 29, 2022
1090173
fixed failing test
galz10Sep 29, 2022
0cec6b5
changed name and return type of list_documents
galz10Sep 30, 2022
0b67124
updated failing tests
galz10Sep 30, 2022
01e551f
lint fix
galz10Sep 30, 2022
c25faf3
chore: updated comments
galz10Sep 30, 2022
cf8abef
updating naming for get_document to get_shards
galz10Oct 3, 2022
a8bbf7a
revert get_document changes
galz10Oct 3, 2022
3c547e0
Merge branch 'main' into update_comments
galz10Oct 3, 2022
8df5b0b
lint fix
galz10Oct 3, 2022
6ac3b43
added code-block to comments
galz10Oct 4, 2022
0b1b52a
feat: add TableWrapper and helper functions
galz10Oct 4, 2022
fb81212
wrapped lines and paragraphs
galz10Oct 6, 2022
eaabc42
Merge branch 'main' into wrap-table
galz10Oct 6, 2022
efc302f
Merge branch 'main' into wrap-table
galz10Oct 7, 2022
88bbe01
added tests for new features
galz10Oct 7, 2022
f7ede09
lint fix
galz10Oct 7, 2022
86c753c
feat: added helper functions to DocumentWrapper
galz10Oct 12, 2022
8bcf3e2
lint fix
galz10Oct 12, 2022
1c88552
fixed failing test
galz10Oct 12, 2022
5ffd706
refactored code
galz10Oct 12, 2022
224b589
lint fix
galz10Oct 12, 2022
69e847c
lint fix
galz10Oct 12, 2022
f9975bc
refactored code
galz10Oct 13, 2022
63e00fd
Merge branch 'main' into add-helpers
galz10Oct 18, 2022
4dc1ec6
fixed failing test
galz10Oct 18, 2022
91f348f
refactored code
galz10Oct 18, 2022
328ee4c
Merge branch 'main' into add-helpers
galz10Oct 19, 2022
249983c
added text fixture to simplify testing
galz10Oct 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
Next Next commit
fixed failing test
  • Loading branch information
@galz10
galz10 committedOct 12, 2022
commit 1c88552ea6e8029a6994a855fecfefdb03eaa2cf
Original file line numberDiff line numberDiff line change
Expand Up@@ -253,10 +253,10 @@ def search_pages(
found_pages = []
for page in self.pages:
for paragraph in page.paragraphs:
if target_string is not None and target_string in paragraph.text:
if target_string is not None and target_string in paragraph:
found_pages.append(page)
break
if regex is not None and re.findall(regex, paragraph.text) != []:
if regex is not None and re.findall(regex, paragraph) != []:
found_pages.append(page)
break
return found_pages
Expand Down