|
|
|
@ -993,7 +993,7 @@ def convert_id_to_none_if_negative(value):
|
|
|
|
async def create_simulation(*, db_session: DbSession, simulation_in: SimulationInput, current_user):
|
|
|
|
async def create_simulation(*, db_session: DbSession, simulation_in: SimulationInput, current_user):
|
|
|
|
"""Create a new simulation."""
|
|
|
|
"""Create a new simulation."""
|
|
|
|
input = simulation_in.model_dump(exclude={"SimulationName"})
|
|
|
|
input = simulation_in.model_dump(exclude={"SimulationName"})
|
|
|
|
user_id = current_user.get("user_id")
|
|
|
|
user_id = current_user.user_id
|
|
|
|
|
|
|
|
|
|
|
|
# Check if is default
|
|
|
|
# Check if is default
|
|
|
|
if simulation_in.IsDefault:
|
|
|
|
if simulation_in.IsDefault:
|
|
|
|
|