mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 22:35:03 -05:00
Merge pull request #827 from KontiSR/properfix_updating_client_with_queuitem_status
This is a check used in webserve.py getManualSearchStatus(), to get the ...
This commit is contained in:
commit
80e03a1475
@ -84,9 +84,9 @@ class SearchQueue(generic_queue.GenericQueue):
|
|||||||
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
|
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
|
||||||
|
|
||||||
def is_manualsearch_in_progress(self):
|
def is_manualsearch_in_progress(self):
|
||||||
for cur_item in self.queue + [self.currentItem]:
|
# Only referenced in webserve.py, only current running manualsearch or failedsearch is needed!!
|
||||||
if isinstance(cur_item, (ManualSearchQueueItem, FailedQueueItem)):
|
if isinstance(self.currentItem, (ManualSearchQueueItem, FailedQueueItem)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_backlog_in_progress(self):
|
def is_backlog_in_progress(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user