Skip to content

Commit d276c6e

Browse files
committed
bugfix : correct time interval for generation energy data
1 parent 61d275f commit d276c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codegreen_core/data/entsoe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def get_actual_production_percentage(country, start, end, interval60=False) -> d
329329
return {
330330
"data": table,
331331
"data_available": True,
332-
"time_interval": totalRaw["duration"],
332+
"time_interval": duration,
333333
}
334334
except Exception as e:
335335
print(e)
@@ -338,7 +338,7 @@ def get_actual_production_percentage(country, start, end, interval60=False) -> d
338338
"data": None,
339339
"data_available": False,
340340
"error": Exception,
341-
"time_interval": totalRaw["duration"],
341+
"time_interval": 0,
342342
}
343343

344344

0 commit comments

Comments
 (0)