Skip to content

Commit

Permalink
feat: Show catalog number after label during import
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan authored and jtpavlock committed Nov 2, 2022
1 parent 108fd10 commit 84f8067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moe/plugins/moe_import/import_cli.py
Expand Up @@ -150,7 +150,7 @@ def candidate_prompt(new_album: Album, candidates: list[CandidateAlbum]):
def _fmt_candidate_info(candidate: CandidateAlbum) -> str:
"""Formats a candidates info for the candidate prompt."""
sub_header_values = []
for str_field in ["media", "country", "label"]:
for str_field in ["media", "country", "label", "catalog_num"]:
if value := getattr(candidate.album, str_field):
sub_header_values.append(value)
sub_header_values.extend(candidate.sub_header_info)
Expand Down Expand Up @@ -259,7 +259,7 @@ def _fmt_album(new_album: Album, candidate: CandidateAlbum) -> Text:
header_text.append_text(field_changes).append("\n")

sub_header_text = Text()
for sub_header in ("media", "country", "label"):
for sub_header in ("media", "country", "label", "catalog_num"):
field_changes = _fmt_field_changes(new_album, candidate.album, sub_header)
if not field_changes:
if getattr(new_album, sub_header):
Expand Down

0 comments on commit 84f8067

Please sign in to comment.