Esempio n. 1
0
    def get_incomplete_scans(self):
        if self.pendingRescans == [] or self.dispatchedRescans == []:
            from app.models import RescanTask

            self.pendingRescans = RescanTask.getPendingTasks()
            self.dispatchedRescans = RescanTask.getDispatchedTasks()
        return self.pendingRescans + self.dispatchedRescans
Esempio n. 2
0
 def updateDispatchedRescans(self):
     from app.models import RescanTask
     self.dispatchedRescans = RescanTask.getDispatchedTasks()