mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-11 23:31:55 +02:00
[ui] update condition on node start time computation
This commit is contained in:
parent
a5de8b86dc
commit
a21a1c9962
1 changed files with 2 additions and 3 deletions
|
@ -810,9 +810,8 @@ class BaseNode(BaseObject):
|
||||||
@Slot(result=str)
|
@Slot(result=str)
|
||||||
def getStartDateTime(self):
|
def getStartDateTime(self):
|
||||||
""" Return the date (str) of the first running chunk """
|
""" Return the date (str) of the first running chunk """
|
||||||
if not self.isAlreadySubmittedOrFinished() or len(self._chunks) == 0:
|
dateTime = [chunk._status.startDateTime for chunk in self._chunks if chunk._status.status
|
||||||
return ""
|
not in (Status.NONE, Status.SUBMITTED) and chunk._status.startDateTime != ""]
|
||||||
dateTime = [chunk._status.startDateTime for chunk in self._chunks if chunk._status.startDateTime != ""]
|
|
||||||
return min(dateTime) if len(dateTime) != 0 else ""
|
return min(dateTime) if len(dateTime) != 0 else ""
|
||||||
|
|
||||||
def isAlreadySubmitted(self):
|
def isAlreadySubmitted(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue