Passed
Push — 2.x ( 3a5aed...187ea7 )
by Jordi
07:51
created

senaite.core.catalog.indexer.routineanalysis   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A has_calculation() 0 6 2
1
# -*- coding: utf-8 -*-
2
3
from bika.lims.interfaces import IRoutineAnalysis
4
from plone.indexer import indexer
5
6
7
@indexer(IRoutineAnalysis)
8
def has_calculation(instance):
9
    calculation_uid = instance.getRawCalculation()
10
    if not calculation_uid:
11
        return False
12
    return True
13