sharing/bday: add birthday to event description
This commit is contained in:
@@ -537,6 +537,7 @@ class Item:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
bdayS = match[1] + match[2] + match[3]
|
bdayS = match[1] + match[2] + match[3]
|
||||||
|
bdaySdesc = match[1] + "-" + match[2] + "-" + match[3]
|
||||||
bdayY = int(match[1])
|
bdayY = int(match[1])
|
||||||
bdayM = int(match[2])
|
bdayM = int(match[2])
|
||||||
bdayD = int(match[3])
|
bdayD = int(match[3])
|
||||||
@@ -594,6 +595,9 @@ class Item:
|
|||||||
# add transparency
|
# add transparency
|
||||||
item_ics.vevent.add('transp').value = "TRANSPARENT"
|
item_ics.vevent.add('transp').value = "TRANSPARENT"
|
||||||
|
|
||||||
|
# add description
|
||||||
|
item_ics.vevent.add('description').value = "BDAY=" + bdaySdesc
|
||||||
|
|
||||||
href = self.href
|
href = self.href
|
||||||
if href is not None:
|
if href is not None:
|
||||||
href = href.rstrip(".vcf") + ".ics"
|
href = href.rstrip(".vcf") + ".ics"
|
||||||
|
|||||||
Reference in New Issue
Block a user