Pārlūkot izejas kodu

Fix disabled timers not being disabled

pull/2/head
Jérôme Deuchnord pirms 2 gadiem
vecāks
revīzija
519f5c5ef8
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      _twitchbot/config.py

+ 3
- 1
_twitchbot/config.py Parādīt failu

@@ -72,7 +72,9 @@ class Timer:
pool = []

for c in param.get('pool', []):
pool.append(Command.from_dict(c))
command = Command.from_dict(c)
if not command.disabled:
pool.append(command)

return Timer(
time_between=param.get('between', {}).get('time', 10),


Notiek ielāde…
Atcelt
Saglabāt