fix date with 0 in prefix
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Tue, 1 Jul 2014 04:12:24 +0000 (13:12 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Tue, 1 Jul 2014 04:12:24 +0000 (13:12 +0900)
rainbowstream/rainbow.py

index 86ec4be9b6a08c2a613b4ae39a7c850c7026917e..8fb8a5843a9809c056e308b397df87e4ab348ea7 100644 (file)
@@ -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