1 parent 5771221 commit a1cbef7Copy full SHA for a1cbef7
1 file changed
config.py
@@ -16,7 +16,7 @@
16
EXECUTION_TIME = os.getenv("EXECUTION_TIME", "23:00")
17
18
# A threshold (in pence) over which the difference between the tariffs must be before the switch happens.
19
-SWITCH_THRESHOLD = os.getenv("SWITCH_THRESHOLD", 2)
+SWITCH_THRESHOLD = int(os.getenv("SWITCH_THRESHOLD", 2))
20
21
# List of tariff IDs to compare
22
TARIFFS = os.getenv("TARIFFS", "go,agile,flexible")
0 commit comments