Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
641b4b8f
Commit
641b4b8f
authored
4 months ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Changelog.md
+3
-0
3 additions, 0 deletions
Changelog.md
compendium_v2/publishers/survey_publisher_old_db_2022.py
+2
-2
2 additions, 2 deletions
compendium_v2/publishers/survey_publisher_old_db_2022.py
with
5 additions
and
2 deletions
Changelog.md
+
3
−
0
View file @
641b4b8f
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
compendium_v2/publishers/survey_publisher_old_db_2022.py
+
2
−
2
View file @
641b4b8f
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment