Skip to content

Commit 8411db5

Browse files
Rename blackout to power_shortage in queries
1 parent bb13257 commit 8411db5

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
- query = Q(dashboard_blackout_hours)
1+
- query =
2+
IF(
3+
GRAPH().future?,
4+
-> { V(GRAPH(), number_of_power_shortage_hours) },
5+
-> { 0 }
6+
)
27
- unit = hours
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- query =
22
IF(
33
GRAPH().future?,
4-
-> { V(GRAPH(), peak_of_blackout_hours) },
4+
-> { V(GRAPH(), peak_of_power_shortage_hours) },
55
-> { 0 }
66
)
77
- unit = MW

gqueries/general/electricity/power_shortage/power_shortage_volume.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# The "volume_of_blackout_hours" method returns the blackouts in MWh.
1+
# The "volume_of_power_shortage_hours" method returns the blackouts in MWh.
22
# This needs to be refactored to PJ.
33

44
- query =
55
DIVIDE(
66
PRODUCT(
77
IF(
88
GRAPH().future?,
9-
-> { V(GRAPH(), volume_of_blackout_hours) },
9+
-> { V(GRAPH(), volume_of_power_shortage_hours) },
1010
-> { 0 }
1111
),
1212
MWH_TO_GJ

gqueries/output_elements/dashboard/dashboard_blackout_hours.gql

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- query =
2+
Q(power_shortage_hours)
3+
- unit = hours
File renamed without changes.

0 commit comments

Comments
 (0)