Skip to content

Commit

Permalink
fixed --local for main functions
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed Apr 16, 2024
1 parent d2270f7 commit 754143a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions thepipe_api/thepipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ def parse_arguments() -> argparse.Namespace:

def main() -> None:
args = parse_arguments()
chunks = extract(source=args.source, match=args.match, ignore=args.ignore, limit=args.limit, verbose=args.verbose, ai_extraction=args.ai_extraction, text_only=args.text_only, local=args.local)
if not args.local:
chunks = core.create_chunks_from_messages(chunks)
chunks = extractor.extract_from_source(source=args.source, match=args.match, ignore=args.ignore, limit=args.limit, verbose=args.verbose, ai_extraction=args.ai_extraction, text_only=args.text_only, local=args.local)
save_outputs(chunks=chunks, verbose=args.verbose, text_only=args.text_only)

if __name__ == '__main__':
Expand Down

0 comments on commit 754143a

Please sign in to comment.