hanabi-league/constants.py

35 lines
1.0 KiB
Python
Raw Normal View History

2023-11-22 15:34:24 +01:00
# This file should only contain constants that we use throughout the program,
# i.e. stuff that might be changed at some point, but not changed on user-level
2023-11-22 16:21:30 +01:00
# It's not meant to include all string constants or anything, just the ones that are important for functioning.
2023-11-22 15:34:24 +01:00
2023-11-22 15:31:36 +01:00
APP_NAME = 'hanabi-league'
2023-11-22 17:13:44 +01:00
DB_CONFIG_FILE_NAME = 'db_config.yaml'
CONFIG_FILE_NAME = 'config.yaml'
2023-11-22 15:31:36 +01:00
DEFAULT_DB_NAME = 'hanabi-league'
DEFAULT_DB_USER = 'hanabi-league'
DEFAULT_DB_PASS = 'hanabi-league'
DB_TABLE_NAMES = [
"users"
, "user_accounts"
, "downloads"
, "variants"
, "games"
, "game_participants"
, "game_actions"
, "seeds"
, "variant_base_ratings"
, "variant_ratings"
, "user_base_ratings"
, "user_ratings"
, "statistics"
]
DATABASE_SCHEMA_PATH = 'install/database_schema.sql'
2023-11-22 16:21:30 +01:00
DEFAULT_DB_CONFIG_PATH = 'install/default_db_config.yaml'
2023-11-22 17:13:44 +01:00
DEFAULT_CONFIG_PATH = 'install/default_config.yaml'
2023-11-22 18:56:08 +01:00
VARIANTS_JSON_URL = 'https://raw.githubusercontent.com/Hanabi-Live/hanabi-live/main/packages/data/src/json/variants.json'