Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
The session to directly perform the operation on the database.
"""
ramp_configs = {
'iris': read_config(ramp_config_iris()),
'boston_housing': read_config(ramp_config_boston_housing())
}
for problem_name, ramp_config in ramp_configs.items():
ramp_config_problem = generate_ramp_config(ramp_config)
path_submissions = os.path.join(
ramp_config_problem['ramp_kit_dir'], 'submissions'
)
submit_starting_kits(
session, ramp_config_problem['event_name'], 'test_user',
path_submissions
)
submit_starting_kits(
session, ramp_config_problem['event_name'], 'test_user_2',
path_submissions
)
Parameters
----------
session : :class:`sqlalchemy.orm.Session`
The session to directly perform the operation on the database.
"""
ramp_configs = {
'iris': read_config(ramp_config_iris()),
'boston_housing': read_config(ramp_config_boston_housing())
}
for problem_name, ramp_config in ramp_configs.items():
ramp_config_problem = generate_ramp_config(ramp_config)
path_submissions = os.path.join(
ramp_config_problem['ramp_kit_dir'], 'submissions'
)
submit_starting_kits(
session, ramp_config_problem['event_name'], 'test_user',
path_submissions
)
submit_starting_kits(
session, ramp_config_problem['event_name'], 'test_user_2',
path_submissions
)