From 190d1fc244a70185450fe899a7706052d124eeaa Mon Sep 17 00:00:00 2001 From: Mr-Leshiy Date: Mon, 7 Aug 2023 13:28:50 +0300 Subject: [PATCH] fix snapshot importer --- src/event-db/docker-compose.yml | 1 + .../ideascale-importer/ideascale_importer/snapshot_importer.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event-db/docker-compose.yml b/src/event-db/docker-compose.yml index 6b09caa282..f412720380 100644 --- a/src/event-db/docker-compose.yml +++ b/src/event-db/docker-compose.yml @@ -30,6 +30,7 @@ services: - ADMIN_ROLE_PASSWORD=CHANGE_ME - ADMIN_USER_PASSWORD=CHANGE_ME - ANON_ROLE_PASSWORD=CHANGE_ME + - STAGE=dev depends_on: postgres: condition: service_healthy diff --git a/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py b/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py index 9f6bd5d56e..7d1df51f1a 100644 --- a/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py +++ b/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py @@ -465,7 +465,7 @@ async def _run_catalyst_toolbox_snapshot(self): "min_stake_threshold and voting_power_cap must be set either as CLI arguments or in the database" ) - for network_id, params in self.network_params.items(): + for params in self.network_params.values(): catalyst_toolbox_cmd = ( f"{self.catalyst_toolbox_path} snapshot" f" -s {params.snapshot_tool_out_file}" @@ -473,7 +473,6 @@ async def _run_catalyst_toolbox_snapshot(self): f" -v {self.voting_power_cap}" f" --dreps {self.dreps_out_file}" f" --output-format json {params.catalyst_toolbox_out_file}" - f" --net-type {network_id}" ) await run_cmd("catalyst-toolbox", catalyst_toolbox_cmd)