datamule 0.423__cp39-cp39-win_amd64.whl → 0.426__cp39-cp39-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -268,7 +268,7 @@ class Downloader:
268
268
  self.current_pbar = None
269
269
  return results, parsed_results
270
270
 
271
- def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None, date=None, parse=True):
271
+ def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None, filing_date=None, parse=True):
272
272
  """Main method to download SEC filings."""
273
273
  self.parse_filings = parse
274
274
 
@@ -288,12 +288,12 @@ class Downloader:
288
288
 
289
289
  params['forms'] = ','.join(submission_type) if isinstance(submission_type, list) else submission_type if submission_type else "-0"
290
290
 
291
- if isinstance(date, list):
292
- dates = [(d, d) for d in date]
293
- elif isinstance(date, tuple):
294
- dates = [date]
291
+ if isinstance(filing_date, list):
292
+ dates = [(d, d) for d in filing_date]
293
+ elif isinstance(filing_date, tuple):
294
+ dates = [filing_date]
295
295
  else:
296
- date_str = date if date else f"2001-01-01,{datetime.now().strftime('%Y-%m-%d')}"
296
+ date_str = filing_date if filing_date else f"2001-01-01,{datetime.now().strftime('%Y-%m-%d')}"
297
297
  start, end = date_str.split(',')
298
298
  dates = [(start, end)]
299
299