fixed bug in serializers, thanks Louis DaPrato

This commit is contained in:
Massimo Di Pierro
2012-05-26 20:10:27 -05:00
parent 400c038555
commit 2819285076
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-26 17:53:25) dev
Version 2.00.0 (2012-05-26 20:09:28) dev
+1 -1
View File
@@ -68,7 +68,7 @@ def ics(events, title=None, link=None, timeshift=0):
import datetime
title = title or '(unkown)'
if link and not callable(link):
link = lambda item,prefix=link: prefix.replace('[id]',item['id'])
link = lambda item,prefix=link: prefix.replace('[id]',str(item['id']))
s = 'BEGIN:VCALENDAR'
s += '\nVERSION:2.0'
s += '\nX-WR-CALNAME:%s' % title