We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 241029d commit d06ac03Copy full SHA for d06ac03
dataikuapi/dss/dataset.py
@@ -930,15 +930,15 @@ def get_last_build_end_time(self, as_date=False):
930
last_build_info = self.info.get("lastBuild", dict())
931
timestamp = last_build_info.get("buildEndTime", None)
932
933
- if as_date and timestamp is not None:
+ if as_date and timestamp:
934
return datetime.datetime.fromtimestamp(timestamp / 1000)
935
return timestamp
936
937
def is_last_build_successful(self):
938
"""
939
Get whether the last build of the dataset is successful.
940
941
- :return: True if the last build is successful, False otherwise
+ :return: True if the last build is successful
942
:rtype: bool
943
944
0 commit comments