From 82ec0e95778d59e5b5b6d638940ca353bfd7123f Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Tue, 13 Aug 2019 21:39:28 +0100 Subject: [PATCH] imdb provider --- notes/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notes/__init__.py b/notes/__init__.py index 319605f..76a3893 100644 --- a/notes/__init__.py +++ b/notes/__init__.py @@ -14,7 +14,7 @@ def get_org_paths(): '***REMOVED***', ] -def _get_org_files_in(path, archived: bool=False) -> List[PathIsh]: +def _get_org_files_in(path, archived: bool=False) -> List[Path]: ppp = Path(path) assert ppp.exists() # TODO try/catch?? @@ -26,10 +26,10 @@ def _get_org_files_in(path, archived: bool=False) -> List[PathIsh]: res.extend(glob(path + '/**/*.org', recursive=True)) if archived: res.extend(glob(path + '/**/*.org_archive', recursive=True)) - return res + return list(map(Path, res)) -def get_org_files(archived: bool = False) -> List[PathIsh]: +def get_org_files(archived: bool = False) -> List[Path]: res = [] for p in get_org_paths(): res.extend(_get_org_files_in(p, archived=archived))