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): ...@@ -601,12 +601,17 @@ class DataStore(QtCore.QObject):
self.signal_data_retrieve_done.emit(signal) self.signal_data_retrieve_done.emit(signal)
def active(self, tid=None): 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: if tid:
thread = self.threads.get(tid) thread = self.threads.get(tid)
if thread: if not thread:
return not thread.isFinished()
return False return False
return not thread.isFinished()
for thread in self.threads.values(): for thread in self.threads.values():
if not thread.isFinished(): if not thread.isFinished():
return True 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