Skip to content

Commit

Permalink
Spacing + rename default max cols
Browse files Browse the repository at this point in the history
  • Loading branch information
pushfoo committed Oct 12, 2024
1 parent 27e6fe2 commit af972bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/create_resources_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def skipped_file(file_path: Path):
return file_path.suffix in skip_extensions


TABLE_COLS: dict[str, int] = defaultdict(lambda: 3)
TABLE_COLS[':resources:video/'] = 1
MAX_COLS: dict[str, int] = defaultdict(lambda: 3)


@lru_cache(maxsize=None)
def get_header_num_cols(resource_stub: str, n_files = math.inf) -> int:
return int(min(TABLE_COLS[resource_stub], n_files))
return int(min(MAX_COLS[resource_stub], n_files))


@lru_cache(maxsize=None)
Expand Down

0 comments on commit af972bc

Please sign in to comment.