def pull_completed(self):
		completed = []
		waiting = []
		for t in self.download_jobs:
			if t['status_text'] == 'completed':
				completed.append(t)
			elif t['type'] != 'bt':
				waiting.append(t)
			elif t not in 'files':
				waiting.append(t)
			else:
				i_completed = []
				i_waiting = []
				for f in t['files']:
					if f['status_text'] == 'completed':
						i_completed.append(f)
					else:
						i_waiting.append(f)
				if i_completed:
					tt = dict(t)
					tt['files'] = i_completed
					completed.append(tt)
				if i_waiting:
					tt = dict(t)
					tt['files'] = i_waiting
					waiting.append(tt)
		self.download_jobs = waiting
		return completed
dataset/ETHPy150Open iambus/xunlei-lixian/lixian_query.py/TaskBase.pull_completed/swapped operands of `not in`