kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Bypassing cli skip for update flag
rodzic
ec76034bf8
commit
bb79d454af
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue