Working tracker list default type
This commit is contained in:
parent
426309a8f5
commit
984f50b792
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class TrackerStorage(object):
|
||||||
def getTrackers(self, type="shared"):
|
def getTrackers(self, type="shared"):
|
||||||
return self.file_content.setdefault(type, {})
|
return self.file_content.setdefault(type, {})
|
||||||
|
|
||||||
def getWorkingTrackers(self, type):
|
def getWorkingTrackers(self, type="shared"):
|
||||||
trackers = {
|
trackers = {
|
||||||
key: tracker for key, tracker in self.getTrackers(type).iteritems()
|
key: tracker for key, tracker in self.getTrackers(type).iteritems()
|
||||||
if tracker["time_success"] > time.time() - 60 * 60
|
if tracker["time_success"] > time.time() - 60 * 60
|
||||||
|
|
Loading…
Reference in a new issue