Skip to content

Commit

Permalink
Automatic backup 2024-02-18
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Feb 19, 2024
1 parent a347894 commit ed4de63
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions rich_tables/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ def counts_table(data: List[JSONDict]) -> Table:
FIELDS_MAP: MutableMapping[str, Callable[..., RenderableType]] = defaultdict(
lambda: str,
diff=lambda x: Text.from_markup(json.dumps(diff(*x), indent=2).replace('"', "")),
# albumtypes=lambda x: "; ".join(
# map(
# format_with_color,
# {
# "album; compilation": "comp",
# "dj-mix; broadcast": "dj-mix",
# "broadcast; dj-mix": "dj-mix",
# }
# .get(x, x)
# .split("; "),
# )
# ),
albumtypes=lambda x: "; ".join(
map(
format_with_color,
{
"album; compilation": "comp",
"dj-mix; broadcast": "dj-mix",
"broadcast; dj-mix": "dj-mix",
}
.get(x, x)
.split("; "),
)
),
author=format_with_color_on_black,
labels=lambda x: (
wrap(" ".join(wrap(y["name"].upper(), f"#{y['color']}") for y in x), "b")
Expand Down

0 comments on commit ed4de63

Please sign in to comment.