Passed
Pull Request — 2.x (#1872)
by Jordi
06:13
created

senaite.core.catalog.indexer.contact   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A sortable_title() 0 3 1
1
# -*- coding: utf-8 -*-
2
3
from bika.lims.interfaces import IContact
4
from plone.indexer import indexer
5
6
7
@indexer(IContact)
8
def sortable_title(instance):
9
    return instance.getFullname().lower()
10