mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Update search_queue.py
This commit is contained in:
parent
0b81e63bba
commit
5e95c5bc02
@ -142,7 +142,7 @@ class SearchQueue(generic_queue.GenericQueue):
|
|||||||
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
|
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
|
||||||
|
|
||||||
def is_backlog_in_progress(self):
|
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):
|
if isinstance(cur_item, BacklogQueueItem):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
@ -441,4 +441,4 @@ class FailedQueueItem(generic_queue.QueueItem):
|
|||||||
def snatch_results(f):
|
def snatch_results(f):
|
||||||
for result in f.result():
|
for result in f.result():
|
||||||
snatch_queue_item = SnatchQueueItem(result, result.queue_item)
|
snatch_queue_item = SnatchQueueItem(result, result.queue_item)
|
||||||
SnatchQueue().add_item(snatch_queue_item)
|
SnatchQueue().add_item(snatch_queue_item)
|
||||||
|
Loading…
Reference in New Issue
Block a user