mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 11:58:22 +02:00
Store RPM in vinyles
This commit is contained in:
@ -13,7 +13,13 @@ class Command(BaseCommand):
|
||||
default=stdin,
|
||||
help="Vinyle to be imported.")
|
||||
|
||||
parser.add_argument('--rpm',
|
||||
type=int,
|
||||
default=45,
|
||||
help="RPM of the imported vinyles.")
|
||||
|
||||
def handle(self, *args, **options):
|
||||
rpm = options["rpm"]
|
||||
file = options["input"]
|
||||
vinyles = []
|
||||
for line in file:
|
||||
@ -35,6 +41,7 @@ class Command(BaseCommand):
|
||||
vinyle, created = Vinyle.objects.get_or_create(
|
||||
title=title,
|
||||
side_identifier=side,
|
||||
rp=rpm,
|
||||
)
|
||||
vinyle.authors.set(authors)
|
||||
vinyle.save()
|
||||
|
Reference in New Issue
Block a user