From 2c27b2e9b9314e68f4a070800cd69d9aaa615099 Mon Sep 17 00:00:00 2001 From: Wei-Cheng Pan Date: Thu, 4 Jan 2024 16:52:54 +0900 Subject: [PATCH] fix --- drive/app/unstable/listeh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive/app/unstable/listeh.py b/drive/app/unstable/listeh.py index f30c75e5..3749ede5 100644 --- a/drive/app/unstable/listeh.py +++ b/drive/app/unstable/listeh.py @@ -16,7 +16,7 @@ async def main(args: list[str]) -> int: async with create_default_drive() as drive: parent = await drive.get_node_by_path(path) children = await drive.get_children(parent) - g = ((to_eid(_.name), _.name) for _ in children) + g = ((to_eid(_.name), _.name) for _ in children if not _.is_trashed) pair_list = [(eid, name) for eid, name in g if eid is not None] pair_list.sort(reverse=True) name_list = (name for _eid, name in pair_list)