Fixed repeat functionality with new Script implementation.

This commit is contained in:
Griatch 2014-02-13 22:36:52 +01:00
parent 9f2433b9c2
commit 64fc8f0b2a
2 changed files with 44 additions and 22 deletions

View file

@ -232,7 +232,7 @@ def format_script_list(scripts):
script.key,
script.interval if script.interval > 0 else "--",
"%ss" % nextrep if nextrep else "--",
"%i" % script.repeats if script.repeats else "--",
"%i/%i" % (script.remaining_repeats(), script.repeats) if script.repeats else "--",
"*" if script.persistent else "-",
script.typeclass_path.rsplit('.', 1)[-1],
crop(script.desc, width=20)])