Remove argument

This commit is contained in:
el Mau 2023-01-19 22:45:15 -06:00
parent 3e35c55283
commit da889c9af5
4 changed files with 3 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
env/
__pycache__/
conf.py

View File

@ -1,2 +1,3 @@
aioreq
cryptography
peewee

View File

@ -26,9 +26,6 @@ def _process_command_line_arguments():
help = "Nombre de la Fiel, el predeterminado es 'fiel'"
parser.add_argument('-fn', '--fiel-nombre', help=help, default='fiel')
help = 'Directorio de descarga'
parser.add_argument('-dd', '--dir-descarga', help=help, default='')
return parser.parse_args()

View File

@ -100,17 +100,11 @@ def _get_certificate(path_fiel, name_fiel):
def _validate_arguments(args):
path_download = args.dir_descarga
if not path_download:
msg = 'El argumento -dd (dir-descarga) es requerido'
log.error(msg)
return {}, None
cert = _get_certificate(args.fiel_dir, args.fiel_nombre)
if cert is None:
return {}, None
data = {'path_dowload': path_download}
data = {'path_dowload': ''}
return data, cert