Skip to content

Commit

Permalink
LB-1455 again (#3039)
Browse files Browse the repository at this point in the history
* Use MB by default

* For cron job, use mb_conn

* Remove the useless default flag
  • Loading branch information
mayhem authored Nov 20, 2024
1 parent c00cc96 commit eb716fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mbid_mapping/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def cron_build_all_mb_caches(ctx):
@click.pass_context
def cron_update_all_mb_caches(ctx):
""" Update all mb entity metadata cache in ListenBrainz. """
ctx.invoke(update_canonical_release_data)

# In this context we want to use mb_conn, not lb_conn, like the functions that follow
update_canonical_release_data(False)
ctx.invoke(update_mb_metadata_cache)
ctx.invoke(update_mb_artist_metadata_cache)
ctx.invoke(update_mb_release_group_cache)
Expand Down
2 changes: 1 addition & 1 deletion mbid_mapping/mapping/canonical_musicbrainz_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def create_canonical_musicbrainz_data(use_lb_conn: bool):
log("canonical_musicbrainz_data: done done done!")


def update_canonical_release_data(use_lb_conn: bool = True):
def update_canonical_release_data(use_lb_conn: bool):
"""
Run only the canonical release data, apart from the other tables.
Expand Down

0 comments on commit eb716fb

Please sign in to comment.