summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-15 14:57:50 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-15 14:57:50 +0300
commit8aeef86cc99e3bb7eec9cc593981fc3cee25e33e (patch)
tree7c0b8d409011e25d8e4aa4cd84064b30e6712992
parent7dd75baf5467def63f988d83bf54d844aed212bf (diff)
Two digit date
-rw-r--r--modes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modes.py b/modes.py
index 69c566d..a9c353f 100644
--- a/modes.py
+++ b/modes.py
@@ -30,7 +30,7 @@ class ModesPrinter(object):
def __init__(self, imstr):
username, d, dominants, matrix = imstr.split('|')
self.username = username
- self.date = datetime.strptime(d, '%m%Y').date()
+ self.date = datetime.strptime(d, '%m%y').date()
self.dominants = [ImageColor.getrgb(x) for x in ('#' + dominants[:6], '#' + dominants[6:])]
self.matrix = bin(int(matrix, 16))[2+MATRIX_PADDING:]
self.filename = 'photos/{}_{}.jpg'.format(self.username, self.date.strftime('%Y_%m'))