Reformat code to pythonic standards

This commit is contained in:
chris committed 2026-05-27 08:15:00 -04:00
1 parent 9630657710
commit 31b335b7e8
4 files changed
+128 -61

No files matched your search

+16 -7
View File
@@ -1,8 +1,9 @@
from data.database import MegaMillionsDraw, PowerballDraw
from util.drawing import get_powerball_object, get_mega_millions_object
from util.drawing import get_mega_millions_object, get_powerball_object
from util.environment import load_environment_variables
from util.scrape import project_variables
PROJECT_VARIABLES = load_environment_variables()
RANDOM_SEED = 42
@@ -13,10 +14,16 @@ GAME_INFO = {
'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"]),
'max_game_ball': int(
project_variables["LP_MEGA_MILLIONS_MAX_MEGA_BALL"],
),
'max_main_ball': int(
project_variables["LP_MEGA_MILLIONS_MAX_MAIN_BALL"],
),
'main_count': 5,
'game_ball_name': 'Mega Ball',
'scrape_name': 'mega-millions',
'object_function': get_mega_millions_object
'object_function': get_mega_millions_object,
},
'Powerball': {
'game_name': 'powerball',
@@ -26,7 +33,9 @@ GAME_INFO = {
'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"]),
'main_count': 5,
'game_ball_name': 'Powerball',
'scrape_name': 'powerball',
'object_function': get_powerball_object
}
}
'object_function': get_powerball_object,
},
}