Skip to content

Commit

Permalink
fix: remove arbitrary scanning limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Mar 22, 2024
1 parent 348a265 commit c5b3556
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ def scan_source(self, source: str) -> Generator[dict[str, str], None, None]:
}
elif os.path.isdir(full_filename)\
and filename.find('.files') == -1\
and filename != 'res'\
and len(os.listdir(full_filename)) < 300: # arbitrary
and filename != 'res':
yield from self.scan_source(full_filename)

def scan_sources(self) -> Generator[dict[str, str], None, None]:
Expand Down

0 comments on commit c5b3556

Please sign in to comment.