From 3b8c52a5658fe49edaa587ef78b38bb6b0424935 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Fri, 20 May 2022 20:34:11 -0400 Subject: [PATCH] mejora de estilos --- iplocate.py | 2 +- sql_alch.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iplocate.py b/iplocate.py index baf5196..d1791b5 100755 --- a/iplocate.py +++ b/iplocate.py @@ -168,7 +168,7 @@ def main(): muevelog+"%s" % "--start", shell=True) case '-c': - console.print('[bold yellow]Cargando logs en base de datos[/bold yellow]') + console.print('[bold yellow]Cargando logs en base de datos[/bold yellow]\n') sql_alch.carga_logs() case '-g': console.print('[yellow]Registro de datos de ipinfo[/yellow]') diff --git a/sql_alch.py b/sql_alch.py index 971f921..90b5d0a 100644 --- a/sql_alch.py +++ b/sql_alch.py @@ -146,7 +146,7 @@ def ip_registrada(ip): def carga_access_log(log): if os.path.exists(log): nombre_log = log.split('/')[-1] - console.print(f'[bold yellow]Registrando [[/bold yellow]{nombre_log}[bold yellow]][/bold yellow]') + console.print(f'[yellow]Registrando [[/yellow]{nombre_log}[yellow]][/yellow]') try: with open(log, 'r') as lista: try: @@ -208,7 +208,7 @@ def carga_access_log(log): time.sleep(0.05) except Exception as ex: print('Exception Progress: ', ex) - console.print('[bold green] - Carga completa.. borrando log[/bold green]\n') + console.print('[magenta] - Carga completa.. borrando log[/magenta]\n') os.remove(log) return True except: @@ -222,7 +222,7 @@ def carga_access_log(log): def carga_error_logs(log): if os.path.exists(log): nombre_log = log.split('/')[-1] - console.print(f'[bold yellow]Registrando [[/bold yellow]{nombre_log}[bold yellow]][/bold yellow]') + console.print(f'[yellow]Registrando [[/yellow]{nombre_log}[yellow]][/yellow]') try: #with Progress(), open(log, 'r') as lista: with open(log, 'r') as lista: @@ -300,7 +300,7 @@ def carga_error_logs(log): time.sleep(0.05) except Exception as ex: print('Exception Progress: ', ex) - console.print(f'[bold green] - Carga completa.. borrando log[/bold green]\n') + console.print(f'[magenta] - Carga completa.. borrando log[/magenta]\n') os.remove(log) return True except: