From 28a0561d0a35bb425dfebcd6623eaf83c20a5d4e Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Mon, 21 Apr 2014 06:51:24 -0700 Subject: [PATCH] --- gistfile1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gistfile1.py b/gistfile1.py index 6f5ff71..6ffd7b6 100644 --- a/gistfile1.py +++ b/gistfile1.py @@ -114,7 +114,7 @@ RefuseManualStop=true [Timer] Unit=%s.service On%s=%s -''' % (unit_name, job['c'], 'BootSec' if job.get('p') == 'reboot' else 'Calendar', +''' % (job['c'], unit_name, 'BootSec' if job.get('p') == 'reboot' else 'Calendar', job.get('p') or '%s %s-%s %s:%s' % (','.join(job['w']), ','.join(map(str, job['M'])), ','.join(map(str, job['d'])), ','.join(map(str, job['h'])), ','.join(map(str, job['m']))) ))