Exemplo 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
Exemplo n.º 2
0
 def updatePendingRescans(self):
     from app.models import RescanTask
     self.pendingRescans = RescanTask.getPendingTasks()