(self)
| 118 | |
| 119 | |
| 120 | def deleteFiles(self): |
| 121 | info = self.api.getQueueData() |
| 122 | if not info: return |
| 123 | |
| 124 | pack = choice(info) |
| 125 | fids = pack.links |
| 126 | |
| 127 | if len(fids): |
| 128 | fids = [f.fid for f in sample(fids, randint(1, max(len(fids) / 2, 1)))] |
| 129 | self.api.deleteFiles(fids) |
| 130 | |
| 131 | |
| 132 | def deletePackages(self): |
no test coverage detected