From 6fefb8c9cfe9f1c9bfb836e1b901caa5ca6ed0b0 Mon Sep 17 00:00:00 2001 From: vunhat_minh Date: Tue, 1 Jul 2014 13:12:24 +0900 Subject: [PATCH] fix date with 0 in prefix --- rainbowstream/rainbow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 86ec4be..8fb8a58 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -977,7 +977,7 @@ def cal(): month = random_rainbow(month) date = rel.pop(0) date = ' '.join([cycle_color(i) for i in date.split(' ')]) - today = os.popen('date +\'%d\'').read().strip() + today = str(int(os.popen('date +\'%d\'').read().strip())) # Display print month print date -- 2.25.1