diff --git a/apps/simulation_runner/db.py b/apps/simulation_runner/db.py index 5300856a..c0e26267 100644 --- a/apps/simulation_runner/db.py +++ b/apps/simulation_runner/db.py @@ -13,7 +13,7 @@ SIMULATION_AGGREGATE_RESULT_COLLECTION_NAME = "simulation_aggregate_result" def get_db(): client = MongoClient(MONGO_URI) - return client.get_default_database() + return client["rowboat"] def get_collection(collection_name: str): db = get_db() @@ -71,4 +71,4 @@ def get_scenarios_for_run(simulation_run: SimulationRun): def write_simulation_result(result: SimulationResult): collection = get_collection(SIMULATION_RESULT_COLLECTION_NAME) - collection.insert_one(result.model_dump()) \ No newline at end of file + collection.insert_one(result.model_dump())