diff --git a/src/review_classification/cli/app.py b/src/review_classification/cli/app.py index f9764bd..e6f554a 100644 --- a/src/review_classification/cli/app.py +++ b/src/review_classification/cli/app.py @@ -399,14 +399,16 @@ def fetch( default_collate_end=collate_end, ) + effective_reset = reset_db for target in targets: _fetch_single( target.name, target.collate_start, target.collate_end, - reset_db, + effective_reset, verbose, ) + effective_reset = False except (FileNotFoundError, ValueError) as e: typer.echo(f"Error: {e}", err=True) @@ -661,6 +663,7 @@ def fetch_and_classify( init_db() + effective_reset = reset_db for target in targets: session = get_session() try: @@ -681,9 +684,10 @@ def fetch_and_classify( target.name, target.collate_start, target.collate_end, - reset_db, + effective_reset, verbose, ) + effective_reset = False successes: list[str] = [] failures: list[str] = []