Skip to content

Commit 3f88fcc

Browse files
committed
ready for merge
1 parent 3a4ee22 commit 3f88fcc

File tree

4 files changed

+4
-166
lines changed

4 files changed

+4
-166
lines changed

datamule/datamule/document/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def get_section(self, title=None, title_regex=None,title_class=None, format='dic
631631
return [flatten_dict(item[1],format) for item in result]
632632

633633

634-
def get_tables(self, description_regex=None, description_fields=None, name=None, contains_regex=None):
634+
def get_tables(self, description_regex=None, description_fields=['preamble', 'postamble', 'footnotes'], name=None, contains_regex=None):
635635
# make sure tables is initialized
636636
self.tables
637637
return self._tables.get_tables(

datamule/datamule/mapping_dicts/html_mapping_dicts_old.py

Lines changed: 0 additions & 162 deletions
This file was deleted.

datamule/docs-rewrite/docs/datamule-python/portfolio/document.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ Note that `get_section` will return matches for `title` (original title) or `sta
179179
### `get_tables`
180180
Gets table by exact name, by regex of description, or by regex patterns that must exist in the table data. Description is autogenerated from nearby context for html files.
181181

182-
183182
**Parameters:**
184183
- `description_regex`: Regex pattern to match against table descriptions
185-
- `name`: Exact table name to match
184+
- `description_fields`: which fields to search, default is ['preamble', 'postamble', 'footnotes']
185+
- `name`: Exact table name to match (works for xml derived tables)
186186
- `contains_regex`: List of regex patterns that must ALL match somewhere in the table's data
187187

188188
Examples:

datamule/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
setup(
3333
name="datamule",
3434
author="John Friedman",
35-
version="3.1.1",
35+
version="3.2.0",
3636
description="Work with SEC submissions at scale.",
3737
packages=find_packages(include=['datamule', 'datamule.*']),
3838
url="https://github.com/john-friedman/datamule-python",

0 commit comments

Comments
 (0)