Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
dd8fe679
Commit
dd8fe679
authored
Apr 07, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show organization for Google Contacts
parent
3c20e89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
contacts.py
blink/contacts.py
+2
-1
No files found.
blink/contacts.py
View file @
dd8fe679
...
...
@@ -620,6 +620,7 @@ class GoogleContact(object):
uris
.
extend
(
GoogleContactURI
.
from_im
(
address
)
for
address
in
contact_data
.
get
(
'imClients'
,
Null
))
uris
.
extend
(
GoogleContactURI
.
from_email
(
address
)
for
address
in
contact_data
.
get
(
'emailAddresses'
,
Null
))
name
=
name
if
not
organization
else
'
%
s (
%
s)'
%
(
name
,
organization
)
self
.
name
=
name
self
.
organization
=
organization
self
.
uris
=
GoogleContactURIList
(
uris
)
...
...
@@ -641,7 +642,7 @@ class GoogleContact(object):
uris
.
extend
(
GoogleContactURI
.
from_email
(
address
)
for
address
in
contact_data
.
get
(
'emailAddresses'
,
Null
))
icon
=
GoogleContactIcon
(
icon_url
,
icon_metadata
)
name
=
name
if
not
organization
else
'
%
s (
%
s)'
%
(
name
,
organization
)
return
cls
(
contact_id
,
name
,
organization
,
uris
,
icon
,
etag
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment