Skip to content

Commit

Permalink
Automatic backup 2024-02-21
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Feb 22, 2024
1 parent 675afd0 commit 3cb621d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions rich_tables/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,15 @@ 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(
albumtypes=lambda x: " ".join(
map(
format_with_color,
{
"album; compilation": "comp",
"dj-mix; broadcast": "dj-mix",
"broadcast; dj-mix": "dj-mix",
}
.get("; ".join(x), "; ".join(x))
.split("; "),
(
"; ".join(x)
.replace("album; compilation", "comp")
.replace("dj-mix; broadcast", "dj-mix")
.replace("broadcast; dj-mix", "dj-mix")
).split("; "),
)
),
author=format_with_color_on_black,
Expand Down

0 comments on commit 3cb621d

Please sign in to comment.