diff --git a/ReyMotaAppsDj/.dockerignore b/ReyMotaAppsDj/.dockerignore index 9e55a94..6333404 100644 --- a/ReyMotaAppsDj/.dockerignore +++ b/ReyMotaAppsDj/.dockerignore @@ -1,5 +1,4 @@ Dockerfile Makefile volcadossql/ -venv/ -reymota/lyrics/management/ +venv/ \ No newline at end of file diff --git a/ReyMotaAppsDj/K8S/Makefile.local b/ReyMotaAppsDj/K8S/Makefile.local index 6a81c3e..7e294f4 100644 --- a/ReyMotaAppsDj/K8S/Makefile.local +++ b/ReyMotaAppsDj/K8S/Makefile.local @@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') export REGISTRY=localhost:30500 #export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.43 +export IMG_VERSION = 0.44 export IMG_NGINX_VERSION = 1.0 # limpia todo diff --git a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_album.py b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_album.py index 1f22f8e..0bb6bae 100644 --- a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_album.py +++ b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_album.py @@ -6,18 +6,18 @@ from datetime import datetime class Command(BaseCommand): - help = "Importa la lista de letras" + help = "Importa la lista de letras" - def add_arguments(self, parser): - parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') + def add_arguments(self, parser): + parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') - def handle(self, *args, **options): - fichero = options["fichero_csv"] - with open(fichero, 'r') as file: - reader = csv.DictReader(file) - for row in reader: - name = row['name'], - artist = row['artist'], - year = row['year'], - cover_image = row['cover_image'] - print(name, ",", artist, ",", year, ",", cover_image) + def handle(self, *args, **options): + fichero = options["fichero_csv"] + with open(fichero, 'r') as file: + reader = csv.DictReader(file) + for row in reader: + name = row['name'], + artist = row['artist'], + year = row['year'], + cover_image = row['cover_image'] + print(name, ",", artist, ",", year, ",", cover_image) diff --git a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_artista.py b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_artista.py index 1f22f8e..0bb6bae 100644 --- a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_artista.py +++ b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_artista.py @@ -6,18 +6,18 @@ from datetime import datetime class Command(BaseCommand): - help = "Importa la lista de letras" + help = "Importa la lista de letras" - def add_arguments(self, parser): - parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') + def add_arguments(self, parser): + parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') - def handle(self, *args, **options): - fichero = options["fichero_csv"] - with open(fichero, 'r') as file: - reader = csv.DictReader(file) - for row in reader: - name = row['name'], - artist = row['artist'], - year = row['year'], - cover_image = row['cover_image'] - print(name, ",", artist, ",", year, ",", cover_image) + def handle(self, *args, **options): + fichero = options["fichero_csv"] + with open(fichero, 'r') as file: + reader = csv.DictReader(file) + for row in reader: + name = row['name'], + artist = row['artist'], + year = row['year'], + cover_image = row['cover_image'] + print(name, ",", artist, ",", year, ",", cover_image) diff --git a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_song.py b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_song.py index 0bc0456..b9d40fe 100644 --- a/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_song.py +++ b/ReyMotaAppsDj/reymota/lyrics/management/commands/importa_song.py @@ -6,20 +6,20 @@ from datetime import datetime class Command(BaseCommand): - help = "Importa la lista de letras" + help = "Importa la lista de letras" - def add_arguments(self, parser): - parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') + def add_arguments(self, parser): + parser.add_argument("fichero_csv", type=str, help='Ruta al fichero csv') - def handle(self, *args, **options): - fichero = options["fichero_csv"] - with open(fichero, 'r') as file: - reader = csv.DictReader(file) - for row in reader: - title = row['title'], - artist = row['artist'], - album = row['album'], - year = row['year'], - lyrics = row['lyrics'] - pista = row['pista'] - print(title, ",", artist, ",", album, ",", year, ",", pista) + def handle(self, *args, **options): + fichero = options["fichero_csv"] + with open(fichero, 'r') as file: + reader = csv.DictReader(file) + for row in reader: + title = row['title'], + artist = row['artist'], + album = row['album'], + year = row['year'], + lyrics = row['lyrics'] + pista = row['pista'] + print(title, ",", artist, ",", album, ",", year, ",", pista)