Skip to content

Commit d06ac03

Browse files
committed
comments
1 parent 241029d commit d06ac03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,15 +930,15 @@ def get_last_build_end_time(self, as_date=False):
930930
last_build_info = self.info.get("lastBuild", dict())
931931
timestamp = last_build_info.get("buildEndTime", None)
932932

933-
if as_date and timestamp is not None:
933+
if as_date and timestamp:
934934
return datetime.datetime.fromtimestamp(timestamp / 1000)
935935
return timestamp
936936

937937
def is_last_build_successful(self):
938938
"""
939939
Get whether the last build of the dataset is successful.
940940
941-
:return: True if the last build is successful, False otherwise
941+
:return: True if the last build is successful
942942
:rtype: bool
943943
"""
944944
last_build_info = self.info.get("lastBuild", dict())

0 commit comments

Comments
 (0)