Skip to content

Commit

Permalink
renamed date to filing_date for downloaer
Browse files Browse the repository at this point in the history
  • Loading branch information
john-friedman committed Dec 31, 2024
1 parent 2671230 commit 2d2b8e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file not shown.
12 changes: 6 additions & 6 deletions datamule/datamule/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def _download_and_process(self, urls, output_dir):
self.current_pbar = None
return results, parsed_results

def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None, date=None, parse=True):
def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None, filing_date=None, parse=True):
"""Main method to download SEC filings."""
self.parse_filings = parse

Expand All @@ -288,12 +288,12 @@ async def _download():

params['forms'] = ','.join(submission_type) if isinstance(submission_type, list) else submission_type if submission_type else "-0"

if isinstance(date, list):
dates = [(d, d) for d in date]
elif isinstance(date, tuple):
dates = [date]
if isinstance(filing_date, list):
dates = [(d, d) for d in filing_date]
elif isinstance(filing_date, tuple):
dates = [filing_date]
else:
date_str = date if date else f"2001-01-01,{datetime.now().strftime('%Y-%m-%d')}"
date_str = filing_date if filing_date else f"2001-01-01,{datetime.now().strftime('%Y-%m-%d')}"
start, end = date_str.split(',')
dates = [(start, end)]

Expand Down

0 comments on commit 2d2b8e0

Please sign in to comment.