Skip to content
Snippets Groups Projects
Commit 1783aff9 authored by magicfelix's avatar magicfelix
Browse files

Use correct base64 method

parent 75edf74f
No related branches found
No related tags found
1 merge request!1147Implement read-only CalDAV and CardDAV
Pipeline #195660 failed
......@@ -446,7 +446,7 @@ class Person(ContactMixin, ExtensibleModel):
if photo is not None:
card.append("PHOTO;ENCODING=b:")
for chunk in photo.chunks():
for line in textwrap.wrap(base64.encode(chunk).decode(), 75):
for line in textwrap.wrap(base64.b64encode(chunk).decode(), 75):
card.append(" " + line)
card.append("END:VCARD")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment