Skip to content

Commit

Permalink
Fix name/ref in analyser_merge_power_substation_minor_FR #1786
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Aug 7, 2023
1 parent d410b66 commit f279c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analysers/analyser_merge_power_substation_minor_FR.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ def __init__(self, config, logger = None):
mapping2 = {
"operator": "GRD",
"source": lambda fields: self.source() + " - " + fields["GRD"],
"name": lambda fields: fields["Nom poste"] if fields["Nom poste"] != "" else None},
"name": lambda fields: fields["Nom poste"] if fields["Nom poste"] != "" and fields["GRD"] != "Strasbourg Électricité Réseaux" else None,
"ref": lambda fields: fields["Nom poste"] if fields["Nom poste"] != "" and fields["GRD"] == "Strasbourg Électricité Réseaux" else None},
)))

0 comments on commit f279c9d

Please sign in to comment.