fix: contact.py spacing issue

This commit is contained in:
Anupam 2021-09-09 11:50:47 +05:30
parent 6ca2788cc5
commit 35d563edb0

View file

@ -47,14 +47,14 @@ class Contact(Document):
def get_link_for(self, link_doctype):
'''Return the link name, if exists for the given link DocType'''
for link in self.links:
if link.link_doctype==link_doctype:
if link.link_doctype == link_doctype:
return link.link_name
return None
def has_link(self, doctype, name):
for link in self.links:
if link.link_doctype==doctype and link.link_name== name:
if link.link_doctype == doctype and link.link_name == name:
return True
def has_common_link(self, doc):