Bypassing cli skip for update flag
This commit is contained in:
parent
ec76034bf8
commit
bb79d454af
|
@ -567,6 +567,7 @@ class ImportBatch(models.Model):
|
||||||
|
|
||||||
class ImportJob(models.Model):
|
class ImportJob(models.Model):
|
||||||
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
|
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
|
||||||
|
update_if_duplicate = models.BooleanField(default=False)
|
||||||
batch = models.ForeignKey(
|
batch = models.ForeignKey(
|
||||||
ImportBatch, related_name="jobs", on_delete=models.CASCADE
|
ImportBatch, related_name="jobs", on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,6 +55,16 @@ class Command(BaseCommand):
|
||||||
"import and not much disk space available."
|
"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(
|
parser.add_argument(
|
||||||
"--noinput",
|
"--noinput",
|
||||||
"--no-input",
|
"--no-input",
|
||||||
|
|
Loading…
Reference in New Issue