Skip to content
Snippets Groups Projects
Commit 641b4b8f authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Fix old_db_2022 survey publisher to not use enum value when saving external connections

parent 65c6d1a3
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.86] - 2025-02-05
- Fix old_db_2022 survey publisher to not use enum value when saving external connections
## [0.85] - 2025-01-28 ## [0.85] - 2025-01-28
- Add back in old data publishers until the exported survey data is manually validated - Add back in old data publishers until the exported survey data is manually validated
......
...@@ -21,7 +21,7 @@ from collections import defaultdict ...@@ -21,7 +21,7 @@ from collections import defaultdict
import compendium_v2 import compendium_v2
from compendium_v2.conversion.mapping import CHARGING_LEVELS, CONNECTION, INTERCONNECTION, SERVICE_USER_TYPE_TO_CODE from compendium_v2.conversion.mapping import CHARGING_LEVELS, CONNECTION, INTERCONNECTION, SERVICE_USER_TYPE_TO_CODE
from compendium_v2.db.presentation_model_enums import CommercialCharges, CommercialConnectivityCoverage, \ from compendium_v2.db.presentation_model_enums import CommercialCharges, CommercialConnectivityCoverage, \
ConnectionMethod, FeeType, ServiceCategory, UserCategory, YesNoPlanned FeeType, ServiceCategory, UserCategory, YesNoPlanned
from compendium_v2.environment import setup_logging from compendium_v2.environment import setup_logging
from compendium_v2.config import load from compendium_v2.config import load
from compendium_v2.publishers.helpers import extract_urls, valid_url from compendium_v2.publishers.helpers import extract_urls, valid_url
...@@ -1369,7 +1369,7 @@ def transfer_external_connections(nren_dict): ...@@ -1369,7 +1369,7 @@ def transfer_external_connections(nren_dict):
conn_dict['capacity'] = None conn_dict['capacity'] = None
if conn_dict['interconnection_method']: if conn_dict['interconnection_method']:
int_conn = int_simple[conn_dict['interconnection_method'].replace(" ", "").lower()] int_conn = int_simple[conn_dict['interconnection_method'].replace(" ", "").lower()]
conn_dict['interconnection_method'] = ConnectionMethod[int_conn].value conn_dict['interconnection_method'] = int_conn
for nren_name, year in nren_year_set: for nren_name, year in nren_year_set:
if nren_name not in nren_dict: if nren_name not in nren_dict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment