From c3006445dee3befdf219fbff17804f12e7d3b3b7 Mon Sep 17 00:00:00 2001 From: tereom Date: Tue, 3 Jul 2018 14:31:59 -0500 Subject: [PATCH] Fix the filter by time --- scripts/monitor_stan_15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/monitor_stan_15.py b/scripts/monitor_stan_15.py index 43d9408..265aaca 100644 --- a/scripts/monitor_stan_15.py +++ b/scripts/monitor_stan_15.py @@ -58,7 +58,7 @@ def main(argv): for filename in added: descriptores = procesar_nombre(filename) print(descriptores) - if(descriptores["tipo"] == "REMESAS" and (descriptores["fecha"][-2,] in min_seleccionados)): + if(descriptores["tipo"] == "REMESAS" and (descriptores["fecha"][4:6] in min_seleccionados)): full_path = data_path + "/" + filename subprocess.call(["r", "-e", "quickcountmx:::process_batch_stan('" +full_path+"','"+descriptores['nombre']+"','"+path_out+"','"+path_results+"','"+team+"')"]) else: