Add record_type as a callable to object building function

This commit is contained in:
chris committed 2026-03-06 14:49:55 -05:00
1 parent 90358a2efc
commit 35ce601fbc
1 file changed
+2
+2
View File
@@ -23,11 +23,13 @@ def check_table_name(table_name: str) -> dict | None:
'game_name': 'powerball', 'game_name': 'powerball',
'db_table_name': 'powerball_draws', 'db_table_name': 'powerball_draws',
'inception_year': os.getenv('LP_POWERBALL_INCEPTION'), 'inception_year': os.getenv('LP_POWERBALL_INCEPTION'),
'record_type': get_powerball_object,
}, },
'MegaMillionsDraw': { 'MegaMillionsDraw': {
'game_name': 'mega-millions', 'game_name': 'mega-millions',
'db_table_name': 'mega_millions_draws', 'db_table_name': 'mega_millions_draws',
'inception_year': os.getenv('LP_MEGA_MILLIONS_INCEPTION'), 'inception_year': os.getenv('LP_MEGA_MILLIONS_INCEPTION'),
'record_type': get_mega_millions_object,
}, },
} }