From 618b006a1ecd4b164ad6f233e710e966fe1b2b16 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 26 May 2026 19:22:11 -0400 Subject: [PATCH] Add new config file to load reusable data from --- lottery_predictor/config.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lottery_predictor/config.py diff --git a/lottery_predictor/config.py b/lottery_predictor/config.py new file mode 100644 index 0000000..5d92213 --- /dev/null +++ b/lottery_predictor/config.py @@ -0,0 +1,32 @@ +from data.database import MegaMillionsDraw, PowerballDraw +from util.drawing import get_powerball_object, get_mega_millions_object +from util.environment import load_environment_variables +from util.scrape import project_variables + +PROJECT_VARIABLES = load_environment_variables() + +RANDOM_SEED = 42 +GAME_INFO = { + 'MegaMillions': { + 'game_name': 'mega-millions', + 'table': MegaMillionsDraw, + 'db_table_name': 'mega_millions_draws', + 'inception_year': int(project_variables["LP_MEGA_MILLIONS_INCEPTION"]), + 'rule_change': project_variables["LP_MEGA_MILLIONS_RULE_CHANGE_DATE"], + 'max_game_ball': int(project_variables["LP_MEGA_MILLIONS_MAX_MEGA_BALL"]), + 'max_main_ball': int(project_variables["LP_MEGA_MILLIONS_MAX_MAIN_BALL"]), + 'scrape_name': 'mega-millions', + 'object_function': get_mega_millions_object + }, + 'Powerball': { + 'game_name': 'powerball', + 'table': PowerballDraw, + 'db_table_name': 'powerball_draws', + 'inception_year': int(project_variables["LP_POWERBALL_INCEPTION"]), + 'rule_change': project_variables["LP_POWERBALL_RULE_CHANGE_DATE"], + 'max_game_ball': int(project_variables["LP_POWERBALL_MAX_MAIN_BALL"]), + 'max_main_ball': int(project_variables["LP_POWERBALL_MAX_POWERBALL"]), + 'scrape_name': 'powerball', + 'object_function': get_powerball_object + } +} \ No newline at end of file