Fixed a type casting bug in comet dates

git-svn-id: http://comictagger.googlecode.com/svn/trunk@237 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-12-07 01:53:59 +00:00
parent 8af7651a50
commit 5b8f73528b

View File

@ -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...