Skip to content

Commit

Permalink
Fix importing diesel meter readings (#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelstudios authored Jan 11, 2024
1 parent 036122d commit 3e1cb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seed/data_importer/meters_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ class with the data.
# check which (if any) meter readings are provided
# there can be more than one reading type per row (e.g., both electricity
# and natural gas in the same row)
provided_reading_types = []
provided_reading_types = set()
for field in raw_data[0].keys():
for header_string in Meter.ENERGY_TYPE_BY_HEADER_STRING.keys():
if field.startswith(header_string):
provided_reading_types.append(field)
provided_reading_types.add(field)
continue

if not provided_reading_types:
Expand Down

0 comments on commit 3e1cb89

Please sign in to comment.