Finalize task visibility, selection state and active-copy uninstall protection
这个提交包含在:
1 父节点
ae3ed9c3d7
当前提交
72d678fa03
7 个文件已更改
+68
-63
没有与搜索条件相匹配的文件
+2
-1
@@ -83,7 +83,8 @@ def jobs(uid=None):
|
||||
owner = config.get('uid', 1000)
|
||||
if uid is not None and uid != owner:
|
||||
continue
|
||||
data = (folder / 'copy.log').read_bytes()[-16000:].decode(errors='replace')
|
||||
log_path = folder / 'copy.log'
|
||||
data = log_path.read_bytes()[-16000:].decode(errors='replace') if log_path.exists() else ''
|
||||
progress = list(re.finditer(r'([\d,]+)\s+(\d+)%\s+([\d.]+)([kMGT]?)B/s\s+', data))
|
||||
copied = int(progress[-1][1].replace(',', '')) if progress else 0
|
||||
phase = state['phase']
|
||||
|
||||
在新工单中引用
屏蔽一个用户