From 5b8f73528b8ea609f9f2ba06c7f3d7fc5c3075d3 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Fri, 7 Dec 2012 01:53:59 +0000 Subject: [PATCH] Fixed a type casting bug in comet dates git-svn-id: http://comictagger.googlecode.com/svn/trunk@237 6c5673fe-1810-88d6-992b-cd32ca31540c --- comet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comet.py b/comet.py index e5050b6..7baca54 100644 --- a/comet.py +++ b/comet.py @@ -109,9 +109,9 @@ class CoMet: date_str = "" if md.year is not None: - date_str = md.year.zfill(4) + date_str = str(md.year).zfill(4) if md.month is not None: - date_str += "-" + md.month.zfill(2) + date_str += "-" + str(md.month).zfill(2) assign( 'date', date_str ) #assign( 'coverImage', md.??? ) #TODO Need to use pages list, eventually...