Skip to content

Commit

Permalink
Apply linter
Browse files Browse the repository at this point in the history
It was previously not fully initialized
  • Loading branch information
spolcyn committed Jun 20, 2024
1 parent 378443c commit e11e67f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sec_edgar_downloader/_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ def fetch_and_save_filings(download_metadata: DownloadMetadata, user_agent: str)
successfully_downloaded = 0
to_download = aggregate_filings_to_download(download_metadata, user_agent)
if download_metadata.accession_numbers_to_skip is not None:
to_download = [td for td in to_download if td.accession_number not in download_metadata.accession_numbers_to_skip]
to_download = [
td
for td in to_download
if td.accession_number not in download_metadata.accession_numbers_to_skip
]

for td in to_download:
try:
Expand Down
1 change: 1 addition & 0 deletions tests/test_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def test_fetch_and_save_filings_given_accession_numbers_to_skip(
assert mock_download_filing.call_count == 1
assert mock_save_document.call_count == 1


def test_fetch_and_save_filings_given_exception(user_agent, form_10k, apple_cik):
limit = 2
download_metadata = DownloadMetadata(
Expand Down

0 comments on commit e11e67f

Please sign in to comment.