| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 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 |