-
Contributor
Nice script!
Just changed the way to retrieve the artist ids to be able to express them on the commandline, without the need to edit the file.
I call it this way:
ARTIST1=1602 ARTIST2=1601 python merge-funkwhale-artists.py
--- merge-funkwhale-artists.py +++ merge-funkwhale-artists.2.py @@ -8,8 +8,8 @@ from django.apps import apps from django.core.exceptions import ObjectDoesNotExist -PRIMARY_ARTIST_ID = 1602 -DUPLICATE_ARTIST_ID = 1601 +PRIMARY_ARTIST_ID = os.environ["ARTIST1"] +DUPLICATE_ARTIST_ID = os.environ["ARTIST2"] """ Script to merge two artists with the same name. Adapted from https://github.com/django-extensions/django-extensions/blob/main/django_extensions/management/commands/merge_model_instances.py
Please register or sign in to comment