From 019b4a2d7fc7ae9d5c606c85c006c6b31c7da7c8 Mon Sep 17 00:00:00 2001 From: Stephen Salinas Date: Wed, 25 Feb 2015 09:50:57 -0500 Subject: [PATCH] start/end days --- scripts/logfetch/entrypoint.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/logfetch/entrypoint.py b/scripts/logfetch/entrypoint.py index f6b47f7085..d12ba2e0a0 100644 --- a/scripts/logfetch/entrypoint.py +++ b/scripts/logfetch/entrypoint.py @@ -87,7 +87,8 @@ def fetch(): "chunk_size" : DEFAULT_CHUNK_SIZE, "dest" : DEFAULT_DEST, "task_count" : DEFAULT_TASK_COUNT, - "start_days" : DEFAULT_DAYS + "start_days" : DEFAULT_DAYS, + "end_days" : 0 #today } try: @@ -116,8 +117,8 @@ def fetch(): args = parser.parse_args(remaining_argv) check_args(args) - args.start_days = convert_to_days(args.start_days) if args.start_days else args.start_days - args.end_days = convert_to_days(args.end_days) if args.end_days else args.end_days + args.start_days = convert_to_days(args.start_days) + args.end_days = convert_to_days(args.end_days) args.dest = os.path.expanduser(args.dest) @@ -137,7 +138,8 @@ def cat(): "chunk_size" : DEFAULT_CHUNK_SIZE, "dest" : DEFAULT_DEST, "task_count" : DEFAULT_TASK_COUNT, - "start_days" : DEFAULT_DAYS + "start_days" : DEFAULT_DAYS, + "end_days" : 0 #today } try: @@ -165,8 +167,8 @@ def cat(): args = parser.parse_args(remaining_argv) check_args(args) - args.start_days = convert_to_days(args.start_days) if args.start_days else args.start_days - args.end_days = convert_to_days(args.end_days) if args.end_days else args.end_days + args.start_days = convert_to_days(args.start_days) + args.end_days = convert_to_days(args.end_days) args.dest = os.path.expanduser(args.dest)