mirror of https://github.com/tp4a/teleport
temp.
parent
6700c818cb
commit
f3013f771d
|
@ -123,6 +123,8 @@ class RecordGetInfo(SwxAdminJsonHandler):
|
|||
|
||||
|
||||
class DeleteLog(SwxAdminJsonHandler):
|
||||
|
||||
# TODO: 用户可能会批量删除大量录像文件,因此io操作可能会比较耗时,这里应该改为异步方式。
|
||||
def post(self):
|
||||
args = self.get_argument('args', None)
|
||||
if args is not None:
|
||||
|
|
|
@ -189,7 +189,6 @@ def delete_log(log_list):
|
|||
ret = sql_exec.ExecProcNonQuery(str_sql)
|
||||
if not ret:
|
||||
return False
|
||||
# 删除录像文件
|
||||
try:
|
||||
record_path = os.path.join(cfg.data_path, 'replay', 'ssh', '{:06d}'.format(log_id))
|
||||
if os.path.exists(record_path):
|
||||
|
|
Loading…
Reference in New Issue