From f90a98765b82c57054232e54ef6412597a87f8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 7 Dec 2023 15:26:42 +0100 Subject: [PATCH] change default: fetch variant info --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c54265e..443631a 100644 --- a/main.py +++ b/main.py @@ -34,6 +34,7 @@ def subcommand_init(force: bool, fetch_variants: bool): if fetch_variants: database.fetch_and_initialize_variants() database.initialize_variant_base_ratings() + logger.info("Successfully initialized variants and base ratings.") def subcommand_generate_config(): @@ -52,7 +53,7 @@ def get_parser() -> argparse.ArgumentParser: init_parser = subparsers.add_parser('init', help='Initialize database.') init_parser.add_argument('--force', '-f', help='Force initialization (Drops existing tables)', action='store_true') - init_parser.add_argument('--fetch-variants', '-v', help='Fetch and initialize variants', action='store_true') + init_parser.add_argument('--no-fetch-variants', '-n', help='Do not fetch and initialize variants', action='store_false') subparsers.add_parser('generate-config', help='Generate config file at default location')