1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Merge pull request #484 from krazykrazz/dev

Update search_queue.py
This commit is contained in:
echel0n 2014-05-08 18:12:36 -07:00
commit 0c5935146e

View File

@ -142,7 +142,7 @@ class SearchQueue(generic_queue.GenericQueue):
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
def is_backlog_in_progress(self):
for cur_item in self.queue + [self.currentItem]:
for cur_item in self.queue.queue + [self.currentItem]:
if isinstance(cur_item, BacklogQueueItem):
return True
return False
@ -441,4 +441,4 @@ class FailedQueueItem(generic_queue.QueueItem):
def snatch_results(f):
for result in f.result():
snatch_queue_item = SnatchQueueItem(result, result.queue_item)
SnatchQueue().add_item(snatch_queue_item)
SnatchQueue().add_item(snatch_queue_item)