• 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 = 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment