From 76274248649ca810ab8ed09981e18665874e5f68 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Mon, 20 Mar 2023 15:59:36 +0100 Subject: [PATCH] Reformat file with black --- npbackup/gui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npbackup/gui/main.py b/npbackup/gui/main.py index 4d8eb42..3387b9f 100644 --- a/npbackup/gui/main.py +++ b/npbackup/gui/main.py @@ -210,7 +210,7 @@ def _make_treedata_from_json(ls_result: List[dict]) -> sg.TreeData: # Make sure we normalize mtime, and remove microseconds # dateutil.parser.parse is *really* cpu hungry, let's replace it with a dumb alternative - #mtime = dateutil.parser.parse(entry["mtime"]).strftime("%Y-%m-%d %H:%M:%S") + # mtime = dateutil.parser.parse(entry["mtime"]).strftime("%Y-%m-%d %H:%M:%S") mtime = str(entry["mtime"])[0:19] if entry["type"] == "dir" and entry["path"] not in treedata.tree_dict: treedata.Insert(