Commit c5209fcf authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

data: minor code cleanup and documentation

parent 6be136ea
......@@ -601,12 +601,17 @@ class DataStore(QtCore.QObject):
def active(self, tid=None):
"""data retrieval activity status of store
Returns True or False depending on if the specified thread is
active, or if any thread is active if none specified.
if tid:
thread = self.threads.get(tid)
if thread:
return not thread.isFinished()
if not thread:
return False
return not thread.isFinished()
for thread in self.threads.values():
if not thread.isFinished():
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment