Conditions | 1 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1.037 |
Changes | 0 |
1 | #!/usr/bin/python |
||
39 | 1 | @property |
|
40 | 1 | def sold_items(self) -> list: |
|
41 | """Property for sold items which returns __dict__ of the sold item objects |
||
42 | to allow JSON dump the search response without custom JSONEncoder objects |
||
43 | |||
44 | :return: |
||
45 | """ |
||
46 | return [i.__dict__ for i in self._sold_items] |
||
47 | |||
65 |