| Conditions | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.048 |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 30 | 1 | def get_sold_history(self, market_name, no_delay=False) -> APIResponse: |
|
| 31 | """Implementation of get sold history function |
||
| 32 | |||
| 33 | :type market_name: str |
||
| 34 | :type no_delay: bool |
||
| 35 | :return: |
||
| 36 | """ |
||
| 37 | search_results = self.search(market_name=market_name).data.market_items |
||
| 38 | if search_results: |
||
| 39 | market_name = search_results[0].market_name |
||
| 40 | |||
| 41 | return SoldHistoryParser.parse(self.sales_interface.get_sales_info(market_hash_name=market_name)) |
||
| 42 | |||
| 51 |