Skip to content

Commit

Permalink
start/end days
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalinas committed Feb 25, 2015
1 parent d66f0d1 commit 019b4a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/logfetch/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand All @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 019b4a2

Please sign in to comment.