mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-03 10:14:49 +08:00
Reformat file with black
This commit is contained in:
parent
7fba2c6cdf
commit
7627424864
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue