Skip to content
Snippets Groups Projects
Unverified Commit bb79d454 authored by R En's avatar R En Committed by Eliot Berriot
Browse files

Bypassing cli skip for update flag

parent ec76034b
No related branches found
No related tags found
No related merge requests found
......@@ -567,6 +567,7 @@ class ImportBatch(models.Model):
class ImportJob(models.Model):
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
update_if_duplicate = models.BooleanField(default=False)
batch = models.ForeignKey(
ImportBatch, related_name="jobs", on_delete=models.CASCADE
)
......
......@@ -55,6 +55,16 @@ class Command(BaseCommand):
"import and not much disk space available."
),
)
parser.add_argument(
"--update",
action="store_true",
dest="update",
default=False,
help=(
"Use this flag to replace duplicates (tracks with same "
"musicbrainz mbid) on import with their newest version."
),
)
parser.add_argument(
"--noinput",
"--no-input",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment