change default: fetch variant info

This commit is contained in:
Maximilian Keßler 2023-12-07 15:26:42 +01:00
parent 3e5cf7734c
commit f90a98765b
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -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')