From 8aeef86cc99e3bb7eec9cc593981fc3cee25e33e Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 15 Jul 2015 14:57:50 +0300 Subject: Two digit date --- modes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modes.py') 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')) -- cgit v1.3.1