X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=csit.infra.dash%2Fapp%2Fcdash%2Fdata%2Fdata.py;h=7ddb44311ae226005c92a792f0db5b5c35ba6cfa;hb=4d03dd53c2d77bf2e35a07ed3a5a95f323c3a370;hp=8d2ae965dd6d2c3452151b1e6a1a1ea3384c1ff8;hpb=73d84097f413bf9727f5a2fa91cd803b25bf5315;p=csit.git diff --git a/csit.infra.dash/app/cdash/data/data.py b/csit.infra.dash/app/cdash/data/data.py index 8d2ae965dd..7ddb44311a 100644 --- a/csit.infra.dash/app/cdash/data/data.py +++ b/csit.infra.dash/app/cdash/data/data.py @@ -135,8 +135,9 @@ class Data: :type last_modified_end: datetime, optional :type days: integer, optional :returns: List of file names. - :rtype: List + :rtype: list """ + file_list = list() if days: last_modified_begin = datetime.now(tz=UTC) - timedelta(days=days) try: @@ -215,9 +216,7 @@ class Data: if self._debug: df.info(verbose=True, memory_usage='deep') logging.info( - u"\n" - f"Creation of dataframe {path} took: {time() - start}" - u"\n" + f"\nCreation of dataframe {path} took: {time() - start}\n" ) except NoFilesFound as err: logging.error(f"No parquets found.\n{err}")